input: from typing import List
  
  
  def scrape_links(url: str) -> List[str]:
      """Scrapes all the links from a given webpage and returns them as a list of strings.
      
      >>> scrape_links("http://www.example.com/")
      ['http://www.example.com', '#section1', '/about']
      """
      import requests as req
      from bs4 import BeautifulSoup
      
      r = req.get(url)
      soup = BeautifulSoup(r.text, "html.parser")
      links = [link.get('href') for link in soup.find_all('a')]
      return links
output:     import requests as req
      from bs4 import BeautifulSoup
      
      r = req.get(url)
      soup = BeautifulSoup(r.text, "html.parser")
      links = [link.get('href') for link in soup.find_all('a')]
      return links