添加自定义的请求头功能

This commit is contained in:
Jing Ling
2020-08-12 16:45:51 +08:00
parent 0ed89ef595
commit 5eba97ebce
5 changed files with 24 additions and 20 deletions
-2
View File
@@ -83,7 +83,6 @@ proxy_pool = [{'http': 'http://127.0.0.1:1080',
# 网络请求设置
enable_fake_header = True # 启用伪造请求头
request_delay = 1 # 请求时延
request_timeout = 60 # 请求超时
request_verify = False # 请求SSL验证
@@ -95,7 +94,6 @@ search_recursive_times = 2 # 递归搜索层数
# aiohttp有关配置
# aiohttp 支持 HTTP/HTTPS形式的代理
aiohttp_proxy = None # 示例 proxy="http://user:pass@some.proxy.com"
fake_header = True # 使用伪造请求头
# 为了保证请求质量 请谨慎更改以下设置
sockread_timeout = 6 # 每个请求socket读取超时时间,默认6秒
sockconn_timeout = 3 # 每个请求socket连接超时时间,默认3秒