input: Write a function to create a web crawler in Python that starts from a given URL, looks for other links on the page, and scrapes the page content. The function should return the text content of all the pages visited.
  
  
  import requests
  from bs4 import BeautifulSoup
  import re
  
  def web_crawler(url):
   visited = set()
   queue = [url]
   text_content = []
   
   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 content here
   text_content.append(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'])
   
   return '\n'.join(text_content)
  
  # Test cases
  assert web_crawler('http://example.com') # Should return the text content of example.com and linked pages
  assert web_crawler('http://example.com') # Should return the text content of example.com and linked pages
  assert web_crawler('http://example.com') # Should return the text content of example.com and linked pages
  assert web_crawler('http://example.com') # Should return the text content of example.com and linked pages
  assert web_crawler('http://example.com') # Should return the text content of example.com and linked pages
  
output: import requests
  from bs4 import BeautifulSoup
  import re
  
  def web_crawler(url):
      visited = set()
      queue = [url]
      text_content = []
      
      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 content here
              text_content.append(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'])
      
      return '\n'.join(text_content)