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
Yahoo unhappy about crumbs #393
Comments
can you try this branch: |
Works like a charm after a quick (command-line, via
(which of course wraps the |
And just for completeness as I use this in a loop storing in Redis (details on my blog / in package |
I can confirm this fix is working for me as well. |
This seems to be caused by a missing "User-Agent" in the current request header. Ethan's patch added a user-agent in addition to improving the error message. And it's not good enough for the user-agent to be set to something. It needs to be a value the server considers valid, like it is in Ethan's patch. I tried setting it to |
this is the second change yahoo has made in the last few months that treats scripting differently than actual browsers. i fear this api is not long for this world. just my .02 |
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. Co-authored-by: Ethan Smith <24379655+ethanbsmith@users.noreply.github.com>
Description
getQuote()
is no longer working.Expected behavior
getQuote("SPY")
etc worked but no longer doesMinimal, reproducible example
Session Info
The text was updated successfully, but these errors were encountered: