input: 
  def scrape_links(url: str) -> List[str]:
      """ Scrapes all the links from a given website and returns a list of URLs.
      >>> scrape_links("http://www.example.com/")
      ['http://www.iana.org/domains/example', '/', '/about', '/contact']
      """
      import requests as req 
      from bs4 import BeautifulSoup 
      
      links = []
      
      # GET request 
      r = req.get(url) 
      
      # parse the downloaded homepage and grab all text
      soup = BeautifulSoup(r.text, "html.parser") 
      
      # find all links and add to the list
      for link in soup.find_all('a'): 
          href = link.get('href')
          if href:
              links.append(href)
      
      return links
  
output:     import requests as req 
      from bs4 import BeautifulSoup 
      
      links = []
      
      # GET request 
      r = req.get(url) 
      
      # parse the downloaded homepage and grab all text
      soup = BeautifulSoup(r.text, "html.parser") 
      
      # find all links and add to the list
      for link in soup.find_all('a'): 
          href = link.get('href')
          if href:
              links.append(href)
      
      return links