Files
EveryPublish/examples/get_xiaohongshu_cookie.py
T
home-dev-pookz 90d03dc15a 小红书重构
1. 图文上传
2. 视频上传(封面,定时)
3. cli
4. skill
5. 无头模式
2026-03-25 15:19:40 +08:00

25 lines
624 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""
当前主线优先使用 CLI:
sau xiaohongshu login --account <account_name>
这个脚本保留为小红书 uploader 的调试入口 / 历史直连路径。
"""
import asyncio
from pathlib import Path
from conf import BASE_DIR
from uploader.xiaohongshu_uploader.main import xiaohongshu_setup
if __name__ == '__main__':
account_file = Path(BASE_DIR / "cookies" / "xiaohongshu_uploader" / "account.json")
account_file.parent.mkdir(exist_ok=True)
result = asyncio.run(
xiaohongshu_setup(
str(account_file),
handle=True,
return_detail=True,
)
)