大家好,又见面了,我是全栈君。
python爬虫遇到https站点InsecureRequestWarning警告解决方案
加三行代码即可
from requests.packages.urllib3.exceptions import InsecureRequestWarning,InsecurePlatformWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
requests.packages.urllib3.disable_warnings(InsecurePlatformWarning)
以上。
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/108219.html原文链接:https://javaforall.net