input: Write a function to build a web scraper in Python that collects all the links from a specified URL. The function should take a URL as input and return a list of all the links found on that webpage. If no links are found, return an empty list.
  assert build_web_scraper("http://www.example.com/")==['http://www.iana.org/domains/example']
  assert build_web_scraper("https://www.google.com/")==[]
  assert build_web_scraper("http://nonexistenturl123456.com/")==[]
  assert build_web_scraper("")==[]
  assert build_web_scraper("http://www.github.com/")==[]
output: import requests
  from bs4 import BeautifulSoup
  
  def build_web_scraper(url):
      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 []