# Database settings.
MONGO_IP = 'localhost'
MONGO_PORT = 27017

# Chrome settings.
DISABLE_IMAGE = False
HEADLESS = False

# Acccount of Taobao
LOGIN_ENABLE = True
USERNAME = 's_ikkyu'
PASSWORD = 'ddbdytr55'

TEST_URL = 'https://s.taobao.com/search?q=HUAWEI&s=88'

HEADERS = {
    'accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3',
    'accept-encoding': 'gzip, deflate, br',
    'accept-language': 'zh-CN,zh;q=0.9',
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)Chrome/73.0.3683.86 Safari/537.36',
}


TESTER_ENABLE = True
TEST_CYCLE = 3600 

LOGIN_CYCLE = 1800

# API settings
API_ENABLE = True
API_HOST = '0.0.0.0'
API_PORT = 5555


