input: Write a function to create a web crawler in Python that starts from a given website URL and follows the links found on the page, while scraping the content of each page it visits. If the given URL is empty, return an empty list.
  assert crawl("https://example.com")==["Scraped content from link1", "Scraped content from link2"]
  assert crawl("https://anotherexample.com")==["Scraped content from another link"]
  assert crawl("")==[]
output: def crawl(url):
      if not url:
          return []
      import requests
      from bs4 import BeautifulSoup
      visited = set()
      to_visit = [url]
      scraped_content = []
      
      while to_visit:
          current_url = to_visit.pop(0)
          if current_url in visited:
              continue
          visited.add(current_url)
          
          try:
              response = requests.get(current_url)
              if response.status_code == 200:
                  soup = BeautifulSoup(response.text, 'html.parser')
                  scraped_content.append(f"Scraped content from {current_url}")
                  for link in soup.find_all('a', href=True):
                      new_url = link['href']
                      if new_url.startswith('http') and new_url not in visited:
                          to_visit.append(new_url)
          except:
              pass
      
      return scraped_content