Created
March 6, 2014 18:10
-
-
Save dijxtra/9395870 to your computer and use it in GitHub Desktop.
kraken API urllib2 error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nick@miljenko:~$ python | |
Python 2.7.5+ (default, Sep 19 2013, 13:49:51) | |
[GCC 4.8.1] on linux2 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import urllib2 | |
>>> urllib2.urlopen("https://api.kraken.com/0/public/Time").read() | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen | |
return _opener.open(url, data, timeout) | |
File "/usr/lib/python2.7/urllib2.py", line 410, in open | |
response = meth(req, response) | |
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response | |
'http', request, response, code, msg, hdrs) | |
File "/usr/lib/python2.7/urllib2.py", line 448, in error | |
return self._call_chain(*args) | |
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain | |
result = func(*args) | |
File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default | |
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) urllib2.HTTPError: HTTP Error 403: Forbidden | |
>>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment