| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- # -*- coding: utf-8 -*-
- """
- -------------------------------------------------
- File Name: setting.py
- Description : 配置文件
- Author : JHao
- date: 2019/2/15
- -------------------------------------------------
- Change Activity:
- 2019/2/15:
- -------------------------------------------------
- """
- BANNER = r"""
- ****************************************************************
- *** ______ ********************* ______ *********** _ ********
- *** | ___ \_ ******************** | ___ \ ********* | | ********
- *** | |_/ / \__ __ __ _ __ _ | |_/ /___ * ___ | | ********
- *** | __/| _// _ \ \ \/ /| | | || __// _ \ / _ \ | | ********
- *** | | | | | (_) | > < \ |_| || | | (_) | (_) || |___ ****
- *** \_| |_| \___/ /_/\_\ \__ |\_| \___/ \___/ \_____/ ****
- **** __ / / *****
- ************************* /___ / *******************************
- ************************* ********************************
- ****************************************************************
- """
- VERSION = "2.1.1"
- # ############### server config ###############
- HOST = "0.0.0.0"
- PORT = 5010
- # ############### database config ###################
- # db connection uri
- # example:
- # Redis: redis://:password@ip:port/db
- # Ssdb: ssdb://:password@ip:port
- DB_CONN = 'redis://@myhome.97admin.com:63790/1'
- # 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",
- "freeProxy16",
- ]
- # ############# proxy validator #################
- VERIFY_URL = "https://www.cloudflare.com/"
- VERIFY_TIMEOUT = 3
- MAX_FAIL_COUNT = 2
- # ############# scheduler config #################
- # Set the timezone for the scheduler forcely (optional)
- # If it is running on a VM, and
- # "ValueError: Timezone offset does not match system offset"
- # was raised during scheduling.
- # Please uncomment the following line and set a timezone for the scheduler.
- # Otherwise it will detect the timezone from the system automatically.
- # TIMEZONE = "Asia/Shanghai"
|