input: Write a function to create a web scraper using Python that collects the title and content from the homepage of a given website. If the content cannot be found, return None for both title and content. Use BeautifulSoup to parse the HTML.
  assert web_scraper('https://www.example.com')==('Example Title', 'Example Content')
  assert web_scraper('https://www.anothersite.com')==(None, None)
  assert web_scraper('https://www.missingcontent.com')==('Missing Content Title', None)
output: def web_scraper(url):
      try:
          import requests
          from bs4 import BeautifulSoup
          response = requests.get(url)
          soup = BeautifulSoup(response.content, 'html.parser')
          title = soup.title.string if soup.title else None
          content = soup.get_text().strip() if soup.get_text().strip() else None
          return title, content
      except:
          return None, None