Skip to content

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
OxOOo committed Mar 8, 2021
1 parent d5ffb92 commit ff6e48a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# 使用代理访问 VALIDATE_URL 网站,超时时间设置为 VALIDATE_TIMEOUT
# 如果没有超时,并且返回的网页中包含 VALIDATE_TEXT 文字,那么就认为本次验证成功
# 上述过程最多进行 VALIDATE_MAX_FAILS 次,只要有一次成功,就认为代理可用
VALIDATE_URL = 'http://www.baidu.com'
VALIDATE_URL = 'https://www.baidu.com'
VALIDATE_TEXT = '百度一下,你就知道'
VALIDATE_TIMEOUT = 8 # 超时时间,单位s
VALIDATE_MAX_FAILS = 3
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ pyquery==1.4.3
requests==2.25.1
urllib3==1.26.3
Werkzeug==1.0.1
requests[socks]
PySocks==1.7.1

0 comments on commit ff6e48a

Please # to comment.