Gets all the license information and stores it in json format

def main():
  """Gets all the license information and stores it in json format"""

  all_summary = {}

  for license in RESOURCES:

    req = requests.get(RESOURCES[license])

    if req.status_code == requests.codes.ok:
      summary = get_summary(req.text)
      can, cannot, must = get_rules(license)

      all_summary[license] = {
          "summary": summary,
          "source": RESOURCES[license],
          "can": can,
          "cannot": cannot,
          "must": must
      }

  with open('summary.json', 'w+') as f:
    f.write(json.dumps(all_summary, indent=4))