input: Write a function that creates a web scraper to extract specific data from a given website using the BeautifulSoup package in Python. The function should receive the URL of the webpage and return the extracted data in the desired format.
  assert scrape_data("<url_of_webpage>") != None
  assert isinstance(scrape_data("<url_of_webpage>"), list)
  assert len(scrape_data("<url_of_webpage>")) > 0
  assert scrape_data("<invalid_url>") == None
output: def scrape_data(url):
      try:
          import requests
          from bs4 import BeautifulSoup
          response = requests.get(url)
          if response.status_code != 200:
              return None
          soup = BeautifulSoup(response.content, 'html.parser')
          data = []
          for tag in soup.find_all('div', class_='specific-class'):
              data.append(tag.text.strip())
          return data if data else None
      except:
          return None