Open
Description
Run the following code to reproduce the issue:
import pandas_datareader as web
web.DataReader("AAPL", "yahoo", "1/1/2018", "1/1/2019")
You will get the following exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/vikas/.local/lib/python3.8/site-packages/pandas/util/_decorators.py", line 210, in wrapper
return func(*args, **kwargs)
File "/home/vikas/.local/lib/python3.8/site-packages/pandas_datareader/data.py", line 370, in DataReader
return YahooDailyReader(
File "/home/vikas/.local/lib/python3.8/site-packages/pandas_datareader/base.py", line 253, in read
df = self._read_one_data(self.url, params=self._get_params(self.symbols))
File "/home/vikas/.local/lib/python3.8/site-packages/pandas_datareader/yahoo/daily.py", line 152, in _read_one_data
j = json.loads(re.search(ptrn, resp.text, re.DOTALL).group(1))
AttributeError: 'NoneType' object has no attribute 'group'
Metadata
Assignees
Labels
No labels