Yahoo Url has been changed
bobby68 opened this issue · comments
Yahoo changed url couple of days ago, so connection with a server cannot be established. New url starts with https://query1.finance.yahoo.com/v7/finance/download...
@bobby68 have you verified this URL? I am just getting a 404.
ok as it seems this only works with cookie authorization now so its personalized.
Look here: https://github.com/IvanTrendafilov/YahooFinanceAPITokens
i guess the lib would need a confic option or something to set the personal token.
I have implemented a change where the API uses the new token and cookie approach, however now i can only unit test them if I hardcode my personal token in there.
I will put this to my fork with the tokens removed so maybe someone wants to look at the code and has an idea how to do that.
unimatrix27@da1cf97
unimatrix27, thanks for working on this. I didn't put a complete URL there, just the fixed part. For one year of AAPL data, my browser shows https://query1.finance.yahoo.com/v7/finance/download/AAPL?period1=1463832130&period2=1495368130&interval=1d&events=history&crumb=9w3.dCKfQnz
Unfortunately, it seems as if Yahoo Finance is winding down. In last couple of days, even for the manual downloads, I got quite a few CSV files with corrupted data (several lines with date followed by nulls for other data fields)- never happened to me before..
Thanks for your help. I have made the changes to fix this.