input: Write a python function to scrape product names and prices from a given URL and store them in a MongoDB collection.
  assert get_data("https://example.com") == None
  assert col.find_one({'name': 'Example Product', 'price': '$10.00'}) is not None
output: def get_data(url):
      import requests
      from bs4 import BeautifulSoup
      from pymongo import MongoClient
  
      # Connect to MongoDB
      client = MongoClient('localhost', 27017)
      db = client['scraped_data']
      col = db['products']
  
      # Make a request to the URL
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
  
      # Example selectors, these would need to be adjusted based on the actual HTML structure
      product_elements = soup.select('.product')
      for product in product_elements:
          name = product.select_one('.product-name').text.strip()
          price = product.select_one('.product-price').text.strip()
  
          # Insert into MongoDB
          col.insert_one({'name': name, 'price': price})
  
      return None