import ssl
ssl._create_default_https_context = ssl._create_unverified_context
InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised
原文:http://www.cnblogs.com/peixianping/p/7196746.html