2023-07-15 09:11:53 +00:00
|
|
|
# Desc: base config
|
2023-06-27 15:38:30 +00:00
|
|
|
PLATFORM = "xhs"
|
|
|
|
KEYWORDS = "健身,旅游"
|
|
|
|
LOGIN_TYPE = "qrcode" # qrcode or phone or cookies
|
|
|
|
COOKIES = ""
|
|
|
|
|
|
|
|
# redis config
|
|
|
|
REDIS_DB_HOST = "redis://127.0.0.1" # your redis host
|
|
|
|
REDIS_DB_PWD = "123456" # your redis password
|
|
|
|
|
|
|
|
# enable ip proxy
|
|
|
|
ENABLE_IP_PROXY = False
|
|
|
|
|
|
|
|
# retry_interval
|
|
|
|
RETRY_INTERVAL = 60 * 30 # 30 minutes
|
|
|
|
|
|
|
|
# playwright headless
|
|
|
|
HEADLESS = True
|
2023-07-15 09:11:53 +00:00
|
|
|
|
|
|
|
# save login state
|
|
|
|
SAVE_LOGIN_STATE = True
|
|
|
|
|
|
|
|
# save user data dir
|
|
|
|
USER_DATA_DIR = "%s_user_data_dir" # %s will be replaced by platform name
|
|
|
|
|
|
|
|
# max page num
|
|
|
|
MAX_PAGE_NUM = 20
|