input: from typing import Set, List
  
  def crawl(url: str) -> Set[str]:
      """Given a starting URL, this function crawls the webpage, collects all unique links found, and scrapes the page content.
      >>> crawl('http://www.example.com')
      {'http://www.example.com'}
      >>> crawl('http://www.mockwebsite.com')
      {'http://www.mockwebsite.com', 'http://www.mockwebsite.com/page1', 'http://www.mockwebsite.com/page2'}
      """
      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'])
      
      return visited
output:     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'])
      
      return visited