pandas-datareader icon indicating copy to clipboard operation
pandas-datareader copied to clipboard

I keep getting this error from yahoo

Open Alyx69 opened this issue 2 years ago • 7 comments

When I run the code it keeps getting me this error

import pandas_datareader as web
import datetime as dt


start = dt.datetime(2019,1,1)
end = dt.datetime.now()

data = web.DataReader('TSLA', 'yahoo', start, end)

print(data)
data = j["context"]["dispatcher"]["stores"]["HistoricalPriceStore"]
TypeError: string indices must be integers

Do You know when it will be fixed??

Alyx69 avatar Jan 10 '23 16:01 Alyx69

Check issue #952 , waiting on some help to get it accepted for PR #953

raphi6 avatar Jan 12 '23 20:01 raphi6

Yeah, +1 for this.. Unable to fetch the data..

Devs ,,Please help..!!

EFFICIENTCORPORATES avatar Jan 19 '23 01:01 EFFICIENTCORPORATES

Not posting for attention--attempting to get a shared vision of the crux of this issue for the REAL devs to solve. Please view comment to shed light on both (i) indices must be integers, and (ii) new_j is not referenced bug.

https://github.com/pydata/pandas-datareader/issues/952#issuecomment-1396106295

TLDR:

  1. Try declaring global variables for new_j and/or data in daily.py
  2. Understand how {} and grave symbol (i.e., curly braces and grave symbol (above tab key)) can be used in python.
  3. Understand how spread operator [...] plays a role in Yahoo Finances' backend architecture.

NRHartFRC avatar Jan 19 '23 19:01 NRHartFRC

+1 for this issue. Code that was previously working is now broken.

mikedesu avatar Jan 19 '23 21:01 mikedesu

I think this project is not maintained anymore.

manugarri avatar Mar 11 '23 10:03 manugarri

error still exists. sadge.

DevSpace88 avatar Oct 16 '23 23:10 DevSpace88

+1 for this issue

pArmarpaRth22 avatar Jan 31 '24 15:01 pArmarpaRth22