input: from typing import List
  
  
  def scrape_website_links(url: str) -> List[str]:
      """
      Collects all the links from a given website URL and returns them as a list of strings.
      >>> scrape_website_links("http://www.example.com/")
      ['http://www.example.com/', '/data1', '/data2', '/data3', '/data4']
      >>> scrape_website_links("http://www.another-example.com/")
      ['http://www.another-example.com/', '/item1', '/item2', '/item3', '/item4']
      """
      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 return all links
      links = [link.get('href') for link in soup.find_all('a')]
      return links
output:     # Filter out None values and prepend the base URL to relative links
      base_url = url.rstrip('/')
      links = [link if link.startswith('http') else base_url + link for link in links if link]
      return links