-
Notifications
You must be signed in to change notification settings - Fork 5.2k
/
setting.py
69 lines (56 loc) · 1.85 KB
/
setting.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name: setting.py
Description : 配置文件
Author : JHao
date: 2019/2/15
-------------------------------------------------
Change Activity:
2019/2/15:
-------------------------------------------------
"""
BANNER = r"""
****************************************************************
*** ______ ********************* ______ *********** _ ********
*** | ___ \_ ******************** | ___ \ ********* | | ********
*** | |_/ / \__ __ __ _ __ _ | |_/ /___ * ___ | | ********
*** | __/| _// _ \ \ \/ /| | | || __// _ \ / _ \ | | ********
*** | | | | | (_) | > < \ |_| || | | (_) | (_) || |___ ****
*** \_| |_| \___/ /_/\_\ \__ |\_| \___/ \___/ \_____/ ****
**** __ / / *****
************************* /___ / *******************************
************************* ********************************
****************************************************************
"""
SHOW_CONFIG = True # print key config
# ############### server config ###############
HOST = "0.0.0.0"
PORT = 5000
# ############### db config ###################
# db connection uri
# example:
# Redis: redis://:password@ip:port/db
# Ssdb: ssdb://:password@ip:port
DB_CONN = 'redis://:pwd@127.0.0.1:6379/0'
# proxy table name
TABLE_NAME = 'use_proxy'
# ###### config the proxy fetch function ######
PROXY_FETCHER = [
"freeProxy01",
# "freeProxy02",
# "freeProxy03",
"freeProxy04",
"freeProxy05",
# "freeProxy06",
"freeProxy07",
# "freeProxy08",
# "freeProxy09",
"freeProxy13",
"freeProxy14",
"freeProxy15",
]
# ############# proxy validator #################
VERIFY_RUL = "http://www.baidu.com"
VERIFY_TIMEOUT = 10
MAX_FAIL_COUNT = 0