input: Write a function to create a web crawler in Python that starts from a given website URL, looks for other links in the page, and then scrapes the page content. The function should use requests and BeautifulSoup libraries to handle HTTP requests and parse HTML content.
  
  
  import requests
  from bs4 import BeautifulSoup
  import re
  
  def crawl(url):
   visited = set()
   queue = [url] 
   
   while queue:
   curr = queue.pop(0)
   visited.add(curr) 
   response = requests.get(curr)
   
   if response.ok:
   soup = BeautifulSoup(response.text, 'html.parser')
  
  # scrape the page here 
  
  # find all the links
   links = soup.find_all('a', href=re.compile('^http')) 
   
   for link in links:
   if link['href'] not in visited:
   queue.append(link['href'])
  
  
  assert crawl('http://example.com') is None
  assert crawl('http://nonexistentwebsite.com') is None
output: 
  def crawl(url):
      visited = set()
      queue = [url]
      
      while queue:
          curr = queue.pop(0)
          visited.add(curr)
          response = requests.get(curr)
          
          if response.ok:
              soup = BeautifulSoup(response.text, 'html.parser')
              
              # scrape the page here
              print(soup.get_text())
              
              # find all the links
              links = soup.find_all('a', href=re.compile('^http'))
              
              for link in links:
                  if link['href'] not in visited:
                      queue.append(link['href'])
  