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. If the title or content is not found, the respective dictionary key should have a value of None.
  assert scrape_website('https://www.example.com')=={'title': 'Example Domain', 'content': 'This is some example content.'}
  assert scrape_website('https://www.nonexistentwebsite.com')=={'title': None, 'content': None}
  assert scrape_website('https://www.blankpage.com')=={'title': '', 'content': ''}
output: import requests
  from bs4 import BeautifulSoup
  
  def scrape_website(url):
      try:
          response = requests.get(url)
          response.raise_for_status()
          soup = BeautifulSoup(response.text, 'html.parser')
          title = soup.title.string if soup.title else None
          content = soup.get_text().strip() if soup.get_text() else None
          return {'title': title, 'content': content}
      except:
          return {'title': None, 'content': None}