20 lines
514 B
Python
20 lines
514 B
Python
|
PLATFORM = "xhs"
|
||
|
KEYWORDS = "健身,旅游"
|
||
|
LOGIN_TYPE = "qrcode" # qrcode or phone or cookies
|
||
|
# If it's on the Xiaohongshu platform, only the web_session cookie will be kept.
|
||
|
# xhs cookie format -> web_session=040069b2acxxxxxxxxxxxxxxxxxxxx;
|
||
|
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
|