input: from typing import List
  
  def collect_website_links(url: str) -> List[str]:
      """Given a URL, this function collects all the links present on the webpage.
      It returns a list of strings representing the links.
      >>> collect_website_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 store 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'):
              filtered_links.append(link)
      return filtered_links