input: Write a function to create a web crawler in Python that starts from a given URL and looks for other links in the page, then scrapes the page content. If the page is successfully scraped, the function should return True, otherwise False.
  assert crawl('http://example.com')==True
  assert crawl('http://invalid-url.com')==False
output: import requests
  from bs4 import BeautifulSoup
  
  def crawl(url):
      try:
          response = requests.get(url)
          if response.status_code == 200:
              soup = BeautifulSoup(response.content, 'html.parser')
              links = soup.find_all('a', href=True)
              return True
          else:
              return False
      except:
          return False