MediaCrawler/config/base_config.py

36 lines
748 B
Python
Raw Normal View History

# Desc: base config
PLATFORM = "xhs"
2023-08-16 11:49:41 +00:00
KEYWORDS = "python,golang"
LOGIN_TYPE = "qrcode" # qrcode or phone or cookie
COOKIES = "" # login by cookie, if login_type is cookie, you must set this value
CRAWLER_TYPE = "search"
# enable ip proxy
ENABLE_IP_PROXY = False
# retry_interval
RETRY_INTERVAL = 60 * 30 # 30 minutes
# playwright headless
HEADLESS = True
# 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
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
2023-11-18 07:53:10 +00:00
# xhs specified note id list
XHS_SPECIFIED_ID_LIST = [
"6422c2750000000027000d88",
"64ca1b73000000000b028dd2",
"630d5b85000000001203ab41",
]