You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 7, 2026. It is now read-only.
As of this week, get_historical_prices seems to either timeout or give URL not found responses.
I have tried from several platforms with the same results. Can others reproduce the error? Does anyone know the cause or a solution?
pprint(ystockquote.get_historical_prices('GOOGL', '2013-01-03', '2013-01-08'))
Traceback (most recent call last):
File "", line 1, in
File "//anaconda/lib/python2.7/site-packages/ystockquote.py", line 486, in get_historical_prices
resp = urlopen(req)
File "//anaconda/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "//anaconda/lib/python2.7/urllib2.py", line 431, in open
response = self._open(req, data)
File "//anaconda/lib/python2.7/urllib2.py", line 449, in _open
'_open', req)
File "//anaconda/lib/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "//anaconda/lib/python2.7/urllib2.py", line 1227, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "//anaconda/lib/python2.7/urllib2.py", line 1197, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [Errno 60] Operation timed out>
As of this week, get_historical_prices seems to either timeout or give URL not found responses.
I have tried from several platforms with the same results. Can others reproduce the error? Does anyone know the cause or a solution?