From 2afb2b17824919e6ae28caddbcdca71d3ba9cfb5 Mon Sep 17 00:00:00 2001 From: Jing Ling Date: Thu, 20 Aug 2020 00:23:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=BD=E7=95=A5=E6=89=80=E6=9C=89=E8=AD=A6?= =?UTF-8?q?=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/default.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/config/default.py b/config/default.py index b90d06d..cc4df1e 100644 --- a/config/default.py +++ b/config/default.py @@ -5,7 +5,6 @@ OneForAll默认配置 import pathlib import warnings -import urllib3 # 路径设置 relative_directory = pathlib.Path(__file__).parent.parent # OneForAll代码相对路径 @@ -96,9 +95,8 @@ proxy_pool = [{'http': 'http://127.0.0.1:1080', request_delay = 1 # 请求时延 request_timeout = 60 # 请求超时 request_verify = False # 请求SSL验证 -# 禁用安全警告信息 +# 禁用所有警告信息 warnings.filterwarnings("ignore") -urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) # 搜索模块设置 # 开启全量搜索会尽量去获取搜索引擎搜索的全部结果,不过搜索耗时可能会过长