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

Improve getQuote GDPR error and add User-Agent #395

Conversation

joshuaulrich
Copy link
Owner

Yahoo Finance requires GDPR consent in some countries. We can't automatically consent for the user, so the data request fails with an ambiguous 404 error.

Yahoo also started to require a User-Agent in the header.

Fixes #392. Fixes #393.

@joshuaulrich joshuaulrich added this to the Release 0.4.25 milestone Jul 27, 2023
@joshuaulrich joshuaulrich merged commit 6ff9004 into joshuaulrich:master Jul 27, 2023
@chartviewer
Copy link

Hi @joshuaulrich ,

I saw your fix and was quite excited to try it out. But still I am getting the GDPR error. Is there any other way to consent to the GDPR?

getQuote("AAPL")
Fehler in getQuote.yahoo(Symbols = "AAPL") :
Unbale to obtain yahoo crumb. If this is being called from a GDPR country, Yahoo requires GDPR consent, which cannot be scripted

Thanks!

@joshuaulrich
Copy link
Owner Author

It's not a fix. Ethan made the error more informative. Like I said in the issue, and in the commit comment, we don't know how to programmatically consent to GDPR. There may be a way to, but someone needs to figure it out.

@ethanbsmith ethanbsmith deleted the fix_404_handle_getquote_gdpr_errors branch March 17, 2024 18:56
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

Successfully merging this pull request may close these issues.

Yahoo unhappy about crumbs getQuote throws 404 error in GDPR countries
3 participants