因为启用了verify=False 所以导致报错。

F:\python3.6.8\lib\site-packages\urllib3\connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made to host ‘www.so.com’. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning,
- 解决方式
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
本文探讨了在使用urllib3库时,因禁用SSL证书验证导致的InsecureRequestWarning警告。解释了该警告的原因,并提供了通过disable_warnings方法禁用警告的解决方案。
4009

被折叠的 条评论
为什么被折叠?



