From 681608a25a3f05ef6b1910fbdb21eb712492cb2e Mon Sep 17 00:00:00 2001 From: Jing Ling Date: Thu, 20 Aug 2020 00:18:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=BD=E7=95=A5=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/default.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/default.py b/config/default.py index dd615f4..b90d06d 100644 --- a/config/default.py +++ b/config/default.py @@ -4,6 +4,7 @@ OneForAll默认配置 """ import pathlib +import warnings import urllib3 # 路径设置 @@ -96,6 +97,7 @@ request_delay = 1 # 请求时延 request_timeout = 60 # 请求超时 request_verify = False # 请求SSL验证 # 禁用安全警告信息 +warnings.filterwarnings("ignore") urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) # 搜索模块设置