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

get_quote_yahoo is not working any more... #962

Open
YanAnastasiadi opened this issue May 9, 2023 · 4 comments
Open

get_quote_yahoo is not working any more... #962

YanAnastasiadi opened this issue May 9, 2023 · 4 comments

Comments

@YanAnastasiadi
Copy link

Hi, today noticed that get_quote_yahoo is not working any more...
Comes back with error:

pandas_datareader._utils.RemoteDataError: Unable to read URL: https://query1.finance.yahoo.com/v7/finance/quote?symbols=9888.HK&lang=en-US&corsDomain=finance.yahoo.com&.tsrc=finance
Response Text:
b'{"finance":{"result":null,"error":{"code":"Unauthorized","description":"Invalid Cookie"}}}'

Does anybody know what may be the problem?

@knoghax
Copy link

knoghax commented May 14, 2023

I'm having the same problem as well. I have no idea what could be the issue

Edit: changing the link for reading from 'v7' to 'v6' seems to be a quick fix to solve the issue. All you need to do is go to line 45 in quotes.py and replace

return "https://query1.finance.yahoo.com/v7/finance/quote"

with

return "https://query1.finance.yahoo.com/v6/finance/quote"

("v7" with "v6") while it doesn't get solved by the devs managing this library.

When it gets solved, I assume that updating the package should be enough

@technomupet67
Copy link

Looks like the work around of changing the version is not working anymore? Anybody has found a way to use get_quote_yahoo without getting errors ?

@eriknh
Copy link

eriknh commented May 25, 2023

Looks like Yahoo is moving to a paid model for Finance API access: https://docs.google.com/forms/d/e/1FAIpQLSeyb7xMtZFjoNYI7XG1rjlhUopKAxdLAfSRcaPxg9p-9ii-_g/viewform

@shadiakiki1986
Copy link

Check #952

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

5 participants