input: Write a python function to scrape the current market price of a specified stock from Yahoo Finance and store the data into a MongoDB database.
  assert get_price('AAPL') > 0
  assert get_price('GOOGL') > 0
  assert get_price('AMZN') > 0
output: import requests
  from bs4 import BeautifulSoup
  from pymongo import MongoClient
  
  def get_price(symbol):
      url = f'https://finance.yahoo.com/quote/{symbol}'
      response = requests.get(url)
      soup = BeautifulSoup(response.text, 'html.parser')
      price = soup.find('fin-streamer', {'data-field': 'regularMarketPrice'}).text
      price = float(price.replace(',', ''))
  
      client = MongoClient('mongodb://localhost:27017/')
      db = client.stock_prices
      collection = db.prices
      collection.insert_one({'symbol': symbol, 'price': price})
  
      return price