Open karthi81 opened 3 years ago
I've got this issue before. This happens when Yahoo's servers are overloaded with requests that they can't handle them anymore. You just have to wait for them to fix the issue. This is not an issue on your side. If you want, there are other ways to pull stock data like, Alpha Vantage, Finnhub, or Alpaca Markets.
On Fri, Jul 9, 2021 at 9:05 PM karthi81 @.***> wrote:
I am getting the following error message and do you have any idea?
karthik$ python support_resistance.py Matplotlib is building the font cache; this may take a moment. Traceback (most recent call last): File "support_resistance.py", line 52, in df = web.DataReader(symbol, 'yahoo', '2019-01-01', '2019-04-01') File "/Users/karthik/SupportResistance/SupportResistance/lib/python3.7/site-packages/pandas/util/_decorators.py", line 199, in wrapper return func(*args, **kwargs) File "/Users/karthik/SupportResistance/SupportResistance/lib/python3.7/site-packages/pandas_datareader/data.py", line 384, in DataReader session=session, File "/Users/karthik/SupportResistance/SupportResistance/lib/python3.7/site-packages/pandas_datareader/base.py", line 253, in read df = self._read_one_data(self.url, params=self._get_params(self.symbols)) File "/Users/karthik/SupportResistance/SupportResistance/lib/python3.7/site-packages/pandas_datareader/yahoo/daily.py", line 153, in _read_one_data resp = self._get_response(url, params=params) File "/Users/karthik/SupportResistance/SupportResistance/lib/python3.7/site-packages/pandas_datareader/base.py", line 181, in _get_response raise RemoteDataError(msg) pandas_datareader._utils.RemoteDataError: Unable to read URL: https://finance.yahoo.com/quote/AAPL/history?period1=1546333200&period2=1554191999&interval=1d&frequency=1d&filter=history Response Text: b'\n \n \n \n
Yahoo \n \n \n \n \n \n \n \n \n \n \n \n \n \n [image: Yahoo Logo] https://camo.githubusercontent.com/d0f96626fdddb70be3746400d0316bc6988654a58c0240e7eca451fde335d8c1/68747470733a2f2f732e79696d672e636f6d2f727a2f702f7961686f6f5f66726f6e74706167655f656e2d55535f735f665f705f3230357835385f66726f6e74706167652e706e67\n Will be right back...\nThank you for your patience. \n
Our engineers are working quickly to resolve the issue. \n \n '
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sohan-py/SupportResistance/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARLTXE543TE3XO4P4GO4GBLTW7BKDANCNFSM5AD2FRCQ .
I am getting the following error message and do you have any idea?
karthik$ python support_resistance.py Matplotlib is building the font cache; this may take a moment. Traceback (most recent call last): File "support_resistance.py", line 52, in
df = web.DataReader(symbol, 'yahoo', '2019-01-01', '2019-04-01')
File "/Users/karthik/SupportResistance/SupportResistance/lib/python3.7/site-packages/pandas/util/_decorators.py", line 199, in wrapper
return func(*args, *kwargs)
File "/Users/karthik/SupportResistance/SupportResistance/lib/python3.7/site-packages/pandas_datareader/data.py", line 384, in DataReader
session=session,
File "/Users/karthik/SupportResistance/SupportResistance/lib/python3.7/site-packages/pandas_datareader/base.py", line 253, in read
df = self._read_one_data(self.url, params=self._get_params(self.symbols))
File "/Users/karthik/SupportResistance/SupportResistance/lib/python3.7/site-packages/pandas_datareader/yahoo/daily.py", line 153, in _read_one_data
resp = self._get_response(url, params=params)
File "/Users/karthik/SupportResistance/SupportResistance/lib/python3.7/site-packages/pandas_datareader/base.py", line 181, in _get_response
raise RemoteDataError(msg)
pandas_datareader._utils.RemoteDataError: Unable to read URL: https://finance.yahoo.com/quote/AAPL/history?period1=1546333200&period2=1554191999&interval=1d&frequency=1d&filter=history
Response Text:
b'<!DOCTYPE html>\n \n \n \n Yahoo \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n '
Will be right back...
\nThank you for your patience.
\nOur engineers are working quickly to resolve the issue.
\n