Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

earnings_dates not available #1932

Open
yunhongz opened this issue May 14, 2024 · 11 comments
Open

earnings_dates not available #1932

yunhongz opened this issue May 14, 2024 · 11 comments

Comments

@yunhongz
Copy link

Describe bug

The earnings_dates record is not available

Simple code that reproduces your problem

import yfinance as yf
msft = yf.Ticker('MSFT')
msft.earnings_dates

Debug log

image

Bad data proof

No response

yfinance version

yfinance 0.2.38

Python version

python3.10

Operating system

ubuntu

@ValueRaider
Copy link
Collaborator

ValueRaider commented May 14, 2024

Yahoo has changed table structure

                                  Event Name  Earnings Call Time  EPS Estimate  Reported EPS  Surprise(%)
0                   Q1 2024 Earnings Release   Time Not Supplied           NaN           NaN          NaN
1                      Q1 2024 Earnings Call                 TAS           NaN           NaN          NaN
2                   Q1 2024 Earnings Release   Time Not Supplied           NaN           NaN          NaN
3   at Bank of America Healthcare Conference                 TAS           NaN           NaN          NaN
4                Annual Shareholders Meeting                 TAS          1.95          1.59      -0.1846
5                   Q1 2024 Earnings Release   Time Not Supplied           NaN           NaN          NaN
6                   Q3 2023 Earnings Release  After Market Close           NaN           NaN          NaN
7                   Q4 2023 Earnings Release  After Market Close           NaN           NaN          NaN
8   at Bank of America Healthcare Conference                 TAS         -0.74           NaN          NaN
9                   Q1 2024 Earnings Release   Time Not Supplied           NaN           NaN          NaN
10               Annual Shareholders Meeting   Time Not Supplied           NaN           NaN          NaN
11                  Q4 2023 Earnings Release  After Market Close           NaN           NaN          NaN

Event name is nice addition, but losing dates a problem. Hoping for a way to get old structure.

Probably Yahoo has broken their redesign rollout, because their Find earnings for symbol search doesn't work: https://finance.yahoo.com/calendar/earnings?symbol=MSFT

@ValueRaider ValueRaider pinned this issue May 14, 2024
@hjlgood
Copy link

hjlgood commented May 15, 2024

Looks like yahoo fixed their problem. yfinance works fine now. I suggest you close this issue.

@ValueRaider
Copy link
Collaborator

I suspect it will return, I've seen this alternative table randomly rarely over last few weeks. Yahoo is up to something...

@michaelmoopenn
Copy link

For some tickers, it works and some others it doesn't. At this time, ENB.TO works, TSLA still gives the issue.

@yunhongz
Copy link
Author

It returned to normal, interesting!

@ValueRaider ValueRaider unpinned this issue May 29, 2024
@hjlgood
Copy link

hjlgood commented Jun 8, 2024

Looks like Yahoo finance's earnings tab blew up again.

@ValueRaider ValueRaider pinned this issue Jun 8, 2024
@EvanYu0816
Copy link

This works fine now, but it's also pulling up non-quarterly earnings.

Depending on how Yahoo Finance plans to move forward with the earnings table, can we please add an option in the future to filter out the non-quarterly earnings?

Right now, we can tell which ones are quarterly by the Company column:
https://finance.yahoo.com/calendar/earnings?symbol=MCD

However, this column is omitted in the get_earnings function.

@ValueRaider
Copy link
Collaborator

Keeping column Company is fine, but filtering rows should be optional in case algorithm has bug.

@tomatofrankie
Copy link

Having the issue starting from this week.

@ValueRaider ValueRaider unpinned this issue Jul 21, 2024
@kasaquan
Copy link

As of today, some tickers work perfectly fine, some tickers give the 'Earnings Date' KeyError.

@xuewei4d
Copy link

when I tried to get the earnings of AI. https://finance.yahoo.com/calendar/earnings/?symbol=AI, yahoo may need some time to run js. I also tried selenium. It works but much slower.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants