input: Write a function to create a web scraper using Python that collects the title and content from the homepage of a given website. The function should take a URL as input and return a dictionary containing the title and content of the page.
  assert 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.'}
  assert web_scraper('https://www.another-example.com')=={'title': 'Another Example', 'content': 'Welcome to another example site.'}
  assert web_scraper('https://www.empty-example.com')=={'title': '', 'content': ''}
output: import requests
  from bs4 import BeautifulSoup
  
  def web_scraper(url):
      response = requests.get(url)
      soup = BeautifulSoup(response.text, 'html.parser')
      title = soup.title.string if soup.title else ''
      content = soup.get_text().strip() if soup.get_text() else ''
      return {'title': title, 'content': content}