input: Write a function to create a web scraper that extracts specific data from a given website using the Python package BeautifulSoup. The function should take a URL as input and return the extracted data in the desired format.
  
  def web_scraper(url):
      import requests
      from bs4 import BeautifulSoup
  
      # Get the web page
      webpage = requests.get(url)
  
      # Parse the web page
      soup = BeautifulSoup(webpage.content, 'html.parser')
  
      # Find all 'a' tags
      links = soup.find_all('a')
  
      # Extract the URLs in the 'href' attribute
      extracted_data = []
      for link in links:
          extracted_data.append(link.get('href'))
      
      return extracted_data
  
  assert web_scraper("https://example.com")==['/page1', '/page2', '/page3']
  assert web_scraper("https://anothersite.com")==['/link1', '/link2']
output: def web_scraper(url):
      import requests
      from bs4 import BeautifulSoup
  
      webpage = requests.get(url)
      soup = BeautifulSoup(webpage.content, 'html.parser')
      links = soup.find_all('a')
      extracted_data = []
      for link in links:
          extracted_data.append(link.get('href'))
      
      return extracted_data