get_quote_yahoo is not working any more...
YanAnastasiadi opened this issue · comments
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?
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
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 ?
Looks like Yahoo is moving to a paid model for Finance API access: https://docs.google.com/forms/d/e/1FAIpQLSeyb7xMtZFjoNYI7XG1rjlhUopKAxdLAfSRcaPxg9p-9ii-_g/viewform
Check #952