input: def web_scraper(url: str) -> dict:
      """Collects the title and content from the homepage of a given website.
      >>> web_scraper('https://www.example.com')
      {'title': 'Example Domain', 'content': 'Welcome to Example.com!'}
      """
      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}