因为启用了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)