input: Write a function to scrape all links from a given webpage URL and return them as a list. If the page is not accessible or there are no links, return an empty list.
  assert scrape_links("http://www.example.com/")==['http://www.iana.org/domains/example']
  assert scrape_links("http://www.google.com/")==[RELEVANT_LINKS]
  assert scrape_links("http://www.invalidwebsite.com/")==[]
  assert scrape_links("http://www.websitewithnolinks.com/")==[]
  assert scrape_links("http://www.non-existenturl.com/")==[]
output: import requests
  from bs4 import BeautifulSoup
  
  def scrape_links(url):
      try:
          response = requests.get(url)
          if response.status_code != 200:
              return []
          soup = BeautifulSoup(response.text, 'html.parser')
          links = [a['href'] for a in soup.find_all('a', href=True)]
          return links
      except:
          return []