python脚本运行报错:
InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
warnings.warn(
python2解决方案:
添加如下内容
# 禁用安全请求警告,当目标使用htpps时使用
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
python3解决方案:
添加如下内容
# 禁用安全请求警告,当目标使用htpps时使用
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)