input: 
  def scrape_homepage(url: str) -> dict:
      """Scrapes the homepage of a given website and returns a dictionary containing the title and content.
      >>> scrape_homepage('https://www.example.com')
      {'title': 'Example Domain', 'content': 'This domain is for use in illustrative examples in documents.'}
      """
      import requests
      import bs4
  
      r = requests.get(url)
      html = bs4.BeautifulSoup(r.text, "html.parser")
  
      title = html.find('title')
      content = html.find('div', {'class': 'content'})
  
      return {'title': title.text, 'content': content.text}
  
output:     if title is None:
          title = ''
      else:
          title = title.text
  
      if content is None:
          content = ''
      else:
          content = content.text
  
      return {'title': title, 'content': content}