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

Unable to fetch stock data from yahoo! #995

Open
vikassnwl opened this issue Aug 25, 2024 · 1 comment · May be fixed by #996
Open

Unable to fetch stock data from yahoo! #995

vikassnwl opened this issue Aug 25, 2024 · 1 comment · May be fixed by #996

Comments

@vikassnwl
Copy link

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'
@vikassnwl vikassnwl linked a pull request Aug 25, 2024 that will close this issue
1 task
@r-vvch
Copy link

r-vvch commented Sep 16, 2024

Same issue

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

Successfully merging a pull request may close this issue.

2 participants