python爬虫遇到https站点InsecureRequestWarning警告解决方案
作者:互联网
python爬虫遇到https站点InsecureRequestWarning警告解决方案
加三行代码即可
from requests.packages.urllib3.exceptions import InsecureRequestWarning,InsecurePlatformWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
requests.packages.urllib3.disable_warnings(InsecurePlatformWarning)
以上。
标签:warnings,python,urllib3,disable,https,InsecureRequestWarning,packages 来源: https://blog.51cto.com/u_13771903/2724983