import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
import requests from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
這裏是urlopen請求https證書驗證錯誤解決辦法: http://www.javashuo.com/article/p-bxbyavzu-ds.htmlhtml