input: Write a function to generate Python code for crawling a website for a specific type of data. The function should take the website URL and the type of data to crawl as inputs and return the extracted data. If no data is found, return an empty list.
  
  def generate_crawling_code(website, data_type):
      code = f"""
  import requests
  import re
  
  def crawl_website_for_{data_type.replace(' ', '_')}(website):
      response = requests.get(website)
      {data_type.replace(' ', '_')}_pattern = {extract_pattern(data_type)}
      {data_type.replace(' ', '_')} = re.findall({data_type.replace(' ', '_')}_pattern, response.text)
      return {data_type.replace(' ', '_')}
      
  if __name__ == '__main__':
      print(crawl_website_for_{data_type.replace(' ', '_')}('{website}'))
  """
      return code
  
  assert generate_crawling_code('www.example.com', 'phone numbers') == """
  import requests
  import re
  
  def crawl_website_for_phone_numbers(website):
      response = requests.get(website)
      phone_numbers_pattern = '\\d{3}-\\d{3}-\\d{4}'
      phone_numbers = re.findall(phone_numbers_pattern, response.text)
      return phone_numbers
      
  if __name__ == '__main__':
      print(crawl_website_for_phone_numbers('www.example.com'))
  """
  
  assert generate_crawling_code('www.sample.com', 'email addresses') == """
  import requests
  import re
  
  def crawl_website_for_email_addresses(website):
      response = requests.get(website)
      email_addresses_pattern = '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}'
      email_addresses = re.findall(email_addresses_pattern, response.text)
      return email_addresses
      
  if __name__ == '__main__':
      print(crawl_website_for_email_addresses('www.sample.com'))
  """
  
  assert generate_crawling_code('www.test.com', 'specific data') == """
  import requests
  import re
  
  def crawl_website_for_specific_data(website):
      response = requests.get(website)
      specific_data_pattern = '.+'
      specific_data = re.findall(specific_data_pattern, response.text)
      return specific_data
      
  if __name__ == '__main__':
      print(crawl_website_for_specific_data('www.test.com'))
  """
output: def generate_crawling_code(website, data_type):
      code = f"""
  import requests
  import re
  
  def crawl_website_for_{data_type.replace(' ', '_')}(website):
      response = requests.get(website)
      {data_type.replace(' ', '_')}_pattern = {extract_pattern(data_type)}
      {data_type.replace(' ', '_')} = re.findall({data_type.replace(' ', '_')}_pattern, response.text)
      return {data_type.replace(' ', '_')}
      
  if __name__ == '__main__':
      print(crawl_website_for_{data_type.replace(' ', '_')}('{website}'))
  """
      return code