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

investpy.get_stock_earnings() broken #361

Open
markus080402 opened this issue Apr 27, 2021 · 3 comments · May be fixed by #249
Open

investpy.get_stock_earnings() broken #361

markus080402 opened this issue Apr 27, 2021 · 3 comments · May be fixed by #249
Assignees
Labels
investing-error Investing.com related error/bug

Comments

@markus080402
Copy link

markus080402 commented Apr 27, 2021

Hi!

It seems as the new html pages format at investing.com has broken the function investpy.get_stock_earnings(ticker, country) :

>>> investpy.get_stock_earnings(ticker, country)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/...
snip.../.local/lib/python3.6/site-packages/investpy/stocks.py", line 1699, in get_stock_earnings
    raise RuntimeError("ERR#0061: introduced stock has no dividend's data to display.")
RuntimeError: ERR#0061: introduced stock has no dividend's data to display.
>>>

Thanks and regards,
Markus

@alvarobartt alvarobartt self-assigned this Apr 28, 2021
@alvarobartt alvarobartt added the investing-error Investing.com related error/bug label Apr 28, 2021
@alvarobartt alvarobartt added this to To do in investpy v1.1.0 via automation Apr 28, 2021
@alvarobartt
Copy link
Owner

Hi @markus080402, can you please share the exact investpy call that you are using (including the parameters) so that I can reproduce it?

As I've just run some manual tests and the pytest ones and everything seems to be working fine as I just mentioned in #355 ... So maybe the issue is related either with the investpy version that you are using or with the function call!

@markus080402
Copy link
Author

Hi @alvarobartt, running latest version of investpy, here are the example commands:

ticker, country = ('G5EN', 'sweden')
investpy.get_stock_earnings(ticker, country)

Thanks and regards,
Markus

@alvarobartt
Copy link
Owner

Thanks! 🔥 So... you are using this fork? #249

As that function is not included in the investpy master branch, so the fork that you are using may be outdated...

@alvarobartt alvarobartt linked a pull request Apr 28, 2021 that will close this issue
@alvarobartt alvarobartt added this to the investpy v1.0.8 milestone Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investing-error Investing.com related error/bug
Projects
Development

Successfully merging a pull request may close this issue.

2 participants