This repository has been archived on 2023-06-18. You can view files and clone it, but cannot push or open issues or pull requests.
va-project/scraper/marketcap.py
Tommaso Verzegnassi 8dd206ce01 Market Cap
2023-05-10 11:35:58 +02:00

10 lines
249 B
Python

from yahooquery import Ticker
stock_symbol = 'AAPL' # Replace with your desired stock symbol
ticker = Ticker(stock_symbol)
summary = ticker.summary_detail
market_cap = summary[stock_symbol.upper()]['marketCap']
print("Market Cap:", market_cap)