I used Python urllib2.urlopenand received 500 errors from the server. How to find the error text? I hope he has useful information.
urllib2.urlopen
from urllib2 import urlopen, HTTPError try: f = urlopen(url) except HTTPError, e: print(e.read())