问题:urllib2.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificat
解决方法:1.使用ssl创建未经验证的上下文,在urlopen中传入上下文参数
import ssl
import urllib2
context = ssl._create_unverified_context()
print urllib2.urlopen("https://www.111cn.net/", context=context).read()
2.导入ssl时关闭证书验证
import ssl
import urllib2
ssl._create_default_https_context = ssl._create_unverified_context
print urllib2.urlopen("https://www.111cn.net/").read()