input: Write a function to scrape the latest stock prices from specific websites given a list of stock symbols. The function should return a dictionary where the keys are the stock symbols and the values are their corresponding stock prices. If a stock symbol is not found or the page fails to load, the function should return "Not available" for that stock symbol.
  
  def get_stock_prices(stock_list):
      import requests
      from bs4 import BeautifulSoup
      prices = {}
      for stock in stock_list:
          try:
              url = f"https://finance.yahoo.com/quote/{stock}"
              response = requests.get(url)
              if response.status_code != 200:
                  prices[stock] = "Not available"
                  continue
              soup = BeautifulSoup(response.text, 'html.parser')
              price = soup.find('div',{'class': 'My(6px) Pos(r) smartphone_Mt(6px)'}).find('span').text
              prices[stock] = price
          except:
              prices[stock] = "Not available"
      return prices
  
  assert get_stock_prices(["AAPL", "MSFT", "FB", "GOOG"])=={'AAPL': '142.13', 'MSFT': '284.08', 'FB': 'Not available', 'GOOG': '2745.39'}
  assert get_stock_prices(["AAPL"])=={'AAPL': '142.13'}
  assert get_stock_prices(["ABC"])=={'ABC': 'Not available'}
  assert get_stock_prices([])=={}
output: def get_stock_prices(stock_list):
      import requests
      from bs4 import BeautifulSoup
      prices = {}
      for stock in stock_list:
          try:
              url = f"https://finance.yahoo.com/quote/{stock}"
              response = requests.get(url)
              if response.status_code != 200:
                  prices[stock] = "Not available"
                  continue
              soup = BeautifulSoup(response.text, 'html.parser')
              price = soup.find('div',{'class': 'My(6px) Pos(r) smartphone_Mt(6px)'}).find('span').text
              prices[stock] = price
          except:
              prices[stock] = "Not available"
      return prices