本文主要是介绍【python requests警告】python3.x requests库取消ssl验证,InsecureRequestWarning: Unverified HTTPS request is be,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
警告信息:
InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warningsInsecureRequestWarning)
原因
是因为在请求的时候request.get(url,verify=False)导致的
解决
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
就搞定了
这篇关于【python requests警告】python3.x requests库取消ssl验证,InsecureRequestWarning: Unverified HTTPS request is be的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!