input: Write a function that creates a web scraper to extract specific data from a given website. The web scraper should utilize the Python package BeautifulSoup to parse webpages and extract the required data by finding HTML elements using tags and attributes. Once the data is found, it can be converted into the desired format and stored.
  assert extract_data("<url_of_webpage>")=="<extracted_data>"
  assert extract_data("<url_of_another_webpage>")=="<different_extracted_data>"
  assert extract_data("<url_of_empty_page>")==None
output: def extract_data(url):
      import requests
      from bs4 import BeautifulSoup
      
      response = requests.get(url)
      if response.status_code != 200:
          return None
      
      soup = BeautifulSoup(response.content, 'html.parser')
      target_element = soup.find('div', class_='specific-class')
      
      if target_element:
          return target_element.text.strip()
      else:
          return None