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 accept the URL of the target website as input and return the title and content as a tuple. If either the title or the content is not found, return None for that part of the tuple.
  assert create_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.')
  assert create_web_scraper('https://www.nonexistentwebsite.com')==(None, None)
  assert create_web_scraper('https://www.example.com')==('Example Domain', None)
output: import requests
  from bs4 import BeautifulSoup
  
  def create_web_scraper(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, content)
      except:
          return (None, None)