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
|
2023-07-24 12:59:43 +00:00
|
|
|
COOKIES = "web_session=xxxxcfed1566xxxxxxxxxxxxxxxxxxx;" # if platform is xhs, pleas set only web_session cookie attr
|
2023-06-27 15:38:30 +00:00
|
|
|
|
|
|
|
# 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
|
2023-07-24 12:59:43 +00:00
|
|
|
SAVE_LOGIN_STATE = True
|
2023-07-15 09:11:53 +00:00
|
|
|
|
|
|
|
# save user data dir
|
|
|
|
USER_DATA_DIR = "%s_user_data_dir" # %s will be replaced by platform name
|
|
|
|
|
2023-07-29 07:35:40 +00:00
|
|
|
# crawler max notes count
|
|
|
|
CRAWLER_MAX_NOTES_COUNT = 20
|
2023-07-15 14:25:56 +00:00
|
|
|
|
|
|
|
# max concurrency num
|
|
|
|
MAX_CONCURRENCY_NUM = 10
|