input: 
  def scrape_links(url: str) -> List[str]:
      """ Scrape all links from a given URL and return them as a list.
      >>> scrape_links("http://www.example.com/")
      ['http://www.iana.org/domains/example']
      """
      import requests as req
      from bs4 import BeautifulSoup
      
      # GET request
      r = req.get(url)
      
      # Parse the webpage
      soup = BeautifulSoup(r.text, "html.parser")
      
      # Find and collect all link URLs
      links = [link.get('href') for link in soup.find_all('a') if link.get('href') is not None]
      
      return links
  
output:     # Filter out non-HTTP/HTTPS links and relative URLs
      filtered_links = []
      for link in links:
          if link.startswith('http'):
              filtered_links.append(link)
          elif link.startswith('/'):
              filtered_links.append(url + link)
      
      return filtered_links