input: from typing import List
  
  
  def collect_website_links(url: str) -> List[str]:
      """
      Given a URL, this function collects all the links from the website and returns them as a list of strings.
      >>> collect_website_links("http://www.example.com/")
      ['http://www.example.com/', 'http://www.example.com/page1', 'http://www.example.com/page2']
      """
      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(S) links
      links = [link for link in links if link and (link.startswith('http://') or link.startswith('https://'))]
      
      # Remove duplicates by converting to a set and back to a list
      links = list(set(links))
      
      return links