input: Write a function to create a web scraper in Python that collects all the links from a given website URL. The function should take a URL as an input and return a list of all the links found on that webpage. If no links are found, it should return an empty list.
  assert scrape_links("http://www.example.com")==['/', 'about/', 'contact/', 'products/', 'help/']
  assert scrape_links("http://www.no-links-example.com")==[]
  assert scrape_links("http://www.example-with-one-link.com")==['/link1']
  assert scrape_links("")==[]
output: import requests
  from bs4 import BeautifulSoup
  
  def scrape_links(url):
      if not url:
          return []
      try:
          response = requests.get(url)
          response.raise_for_status()
          soup = BeautifulSoup(response.text, 'html.parser')
          links = [a['href'] for a in soup.find_all('a', href=True)]
          return links
      except:
          return []