Gets the summary of a license from tldrlegal.com

def get_summary(content):
  """Gets the summary of a license from tldrlegal.com"""
  soup = BeautifulSoup(content, "html.parser")
  summary = soup.find_all(attrs={
      'class': re.compile(r".*\bsummary-content\b.*")})

  if summary[0].p.string is None:
    return summary[0].p.p.getText()
  return summary[0].p.getText()