input: Write a function to implement a web scraper in Python that collects all the links from a given website URL. The function should take a URL as input, send a GET request to the URL, parse the response using BeautifulSoup, and then print all the links found on the webpage.
  
  
  from bs4 import BeautifulSoup 
  import requests as req 
  
  def scrape_links(url):
      # GET request 
      r = req.get(url) 
      
      # parse the downloaded homepage and grab all text
      soup = BeautifulSoup(r.text, "html.parser") 
      
      # find and print all links 
      links = soup.find_all('a') 
      for link in links: 
          print(link.get('href'))
  
  # Example usage
  scrape_links("http://www.example.com/")
  
output: def scrape_links(url):
      r = req.get(url)
      soup = BeautifulSoup(r.text, "html.parser")
      links = soup.find_all('a')
      for link in links:
          print(link.get('href'))