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

TypeError when indexing response from DataReader with 'yahoo' as data source #976

Closed
ghost opened this issue Aug 26, 2023 · 1 comment
Closed

Comments

@ghost
Copy link

ghost commented Aug 26, 2023

When using pandas_datareader.DataReader() with 'yahoo' as the source there is a TypeError 'string indices must be integers'.

The issue appears to be in yahoo/daily.py on line 153, when trying to access 'data = j["context"]["dispatcher"]["stores"]["HistoricalPriceStore"]'.

The "HistoricalPriceStore" field isnt able to be indexed anymore, I assume yahoo changed somehting in their api. I was able to index j["context"]["dispatcher"]["stores"] and the value is now a base64 encoded string, which explains the TypeError.

I tried to decode the string to access the "HistoricalPriceStore" field, but when decoded it begins with 'Salted__' and i wasnt able to figure out how to decode it from there.

@ghost
Copy link
Author

ghost commented Aug 26, 2023

Found that its already open in a different issue #952

@ghost ghost closed this as completed Aug 26, 2023
This issue was closed.
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

0 participants