Get_earnings_of

Course Name: Getting Market Data: Stocks, Crypto, News & Fundamental, Section No: 7, Unit No: 3, Unit type: Notebook

Hi Jorge



Thanks for pointing this out. It seems the yahoo_earnings_calendar library is no longer maintained. We are in the process of updating the notebook and the change will soon reflect in the course. 



In the meanwhile, you can use the yahoo_fin library. Below is the code to get the earnings data:

 

from yahoo_fin.stock_info import get_earnings_history
earnings = get_earnings_history(stock_ticker_symbol)

Hope this helps.