天天看点

获取urllib2.urlopen失败时的错误页面

错误方法:

正确方法:

参考:http://stackoverflow.com/questions/2233687/overriding-urllib2-httperror-and-reading-response-html-anyway