error reading api with urllib

Simian simian336 at gmail.com
Tue Dec 15 21:46:10 EST 2015


I added 
except urllib.error.HTTPError as e:
 print('HTTP Errpr')
 print('Error code: ', e.code)
to my try and I recieve...
400: ('Bad Request',
 'Bad request syntax or unsupported method'),
but processing the string with a browser works fine.
Simi


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /