input: 
  def extract_urls(url: str) -> list:
      """
      Extracts all URLs from a given webpage using BeautifulSoup.
      >>> extract_urls("https://www.example.com")
      ['https://www.example.com/page1', 'https://www.example.com/page2']
      """
      import requests
      from bs4 import BeautifulSoup
  
      # Get the web page
      webpage = requests.get(url)
  
      # Parse the web page
      soup = BeautifulSoup(webpage.content, 'html.parser')
  
      # Find all 'a' tags
      links = soup.find_all('a')
  
      # Extract the URLs in the 'href' attribute
      urls = [link.get('href') for link in links if link.get('href')]
  
      return urls
  
output:     # Filter out non-HTTP/HTTPS URLs
      urls = [u for u in urls if u.startswith('http')]
  
      return urls