input: 
  def web_scraper(url: str):
      """Given a website URL, this function collects and prints the title and content from the homepage.
      >>> web_scraper('https://www.example.com')
      Example Domain
      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")
  
      # Find title
      title = html.find('title')
      print(title.text)
  
      # Find content
      content = html.find('div', {'class': 'content'})
      print(content.text)
  
output:     if content is None:
          content = html.find('p')
      if content is not None:
          print(content.text)