Install
openclaw skills install xhs-bot-raininjunezzClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.
小红书自动化操作 - 发布笔记、管理账号、数据爬取、定时发布。使用浏览器自动化模拟真人操作。
openclaw skills install xhs-bot-raininjunezz通过浏览器自动化操作小红书,支持发布笔记、管理账号、数据爬取等功能。
/xhs-publish --title "标题" --content "内容" --images "/path/to/img1.jpg,/path/to/img2.jpg" --tags "标签 1,标签 2"
/xhs-drafts --list
/xhs-drafts --delete --id <draft_id>
/xhs-stats --note-id <note_id>
/xhs-stats --account
/xhs-comments --list --note-id <note_id>
/xhs-comments --reply --comment-id <comment_id> --text "回复内容"
/xhs-scrape --note <note_url>
/xhs-scrape --topic "话题名称" --limit 10
/xhs-schedule --title "标题" --content "内容" --time "2026-03-14 10:00"
/xhs-schedule --list
/xhs-schedule --cancel --id <schedule_id>
/xhs-login --check
/xhs-login --logout
在 ~/.openclaw/openclaw.json 中配置:
{
skills: {
entries: {
xiaohongshu: {
enabled: true,
env: {
XHS_BROWSER_HEADLESS: "false", // 是否无头模式
XHS_SESSION_PATH: "~/.openclaw/xiaohongshu/session.json", // 会话存储路径
},
},
},
},
}
Q: 登录后还是提示未登录?
A: 检查会话文件是否存在,尝试 /xhs-login --logout 后重新登录
Q: 发布失败怎么办? A: 检查图片格式(支持 jpg/png/webp),标题不超过 20 字,内容不超过 1000 字
Q: 触发验证码怎么处理? A: 浏览器会显示验证码页面,手动完成验证后继续操作