pip install yfinance then: import yfinance as yf msft = yf.Ticker("MSFT") # get stock info msft.info
pip install pandas-datareader