input: 
  def scrape_links(URL: str) -> List[str]:
      """ Scrapes all the links from a given website URL and returns them as a list of strings.
      >>> 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')]
      
      return links
  
output:     # Filter out None values and non-HTTP/HTTPS links
      filtered_links = [link for link in links if link and (link.startswith('http://') or link.startswith('https://'))]
      
      return filtered_links