input: 
  def scrape_links(url: str) -> List[str]:
      """Scrapes all the links from a given website URL.
      >>> scrape_links("http://www.example.com/")
      ['http://www.example.com/', '/about', '/contact']
      >>> scrape_links("http://www.example2.com/")
      ['http://www.example2.com/', '/about', '/services']
      """
      import requests as req 
      from bs4 import BeautifulSoup 
    
      # GET request 
      r = req.get(url) 
    
      # parse the downloaded homepage and grab all text
      soup = BeautifulSoup(r.text, "html.parser") 
    
      # find and return all links 
      links = [link.get('href') for link in soup.find_all('a')]
      return links
  
output:     filtered_links = []
      for link in links:
          if link and (link.startswith('http') or link.startswith('/')):
              if link.startswith('/'):
                  link = url + link
              filtered_links.append(link)
      return filtered_links