input: from typing import List
  
  
  def scrape_links(url: str) -> List[str]:
      """Given a website URL, this function collects and returns all the links in the website.
      >>> 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 downloaded homepage and grab all text
      soup = BeautifulSoup(r.text, "html.parser")
      
      # find and collect all links
      links = [link.get('href') for link in soup.find_all('a') if link.get('href')]
      
      return links
output:     # Filter out non-HTTP(S) 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