input: 
  def web_scraper(url: str) -> dict:
      """
      Creates a web scraper that collects the title and content from the homepage of a given website.
      Uses the requests and BeautifulSoup libraries to perform the scraping.
      >>> web_scraper('https://www.example.com')
      {'title': 'Example Domain', 'content': 'This domain is for use in illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission.'}
      """
      
      import requests
      import bs4
  
      r = requests.get(url)
      html = bs4.BeautifulSoup(r.text, "html.parser")
  
      title = html.find('title').text
      content = html.find('div', {'class': 'content'}).text
  
      return {'title': title, 'content': content}
  
output:     import requests
      import bs4
  
      r = requests.get(url)
      html = bs4.BeautifulSoup(r.text, "html.parser")
  
      title = html.find('title').text
      content = html.find('div', {'class': 'content'}).text if html.find('div', {'class': 'content'}) else ""
  
      return {'title': title, 'content': content}