input: Write a function to create a web scraper in Python that collects the title and content from the homepage of a given website. The function should return a dictionary with the keys 'title' and 'content' containing the respective text. If the title or content is not found, the function should return None for that key. The function should accept a URL as input.
  
  assert scrape_website('https://www.example.com')=={'title': 'Example Title', 'content': 'Example Content'}
  assert scrape_website('https://www.nonexistentwebsite.com')=={'title': None, 'content': None}
  assert scrape_website('https://www.anotherwebsite.com')=={'title': 'Another Title', 'content': 'Another 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}