xiaohongshu

小红书自动化操作 - 发布笔记、管理账号、数据爬取、定时发布。使用浏览器自动化模拟真人操作。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "xiaohongshu" with this command: npx skills add raininjunezz/xhs-bot-raininjunezz

小红书 Skill (Xiaohongshu)

通过浏览器自动化操作小红书,支持发布笔记、管理账号、数据爬取等功能。

⚠️ 使用须知

  1. 账号安全:自动化操作可能触发风控,建议先用小号测试
  2. 登录状态:首次使用需手动登录,会话状态本地存储
  3. 合规使用:请遵守小红书社区规范,不要用于 spam 或违规内容

命令列表

发布笔记

/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",  // 会话存储路径
        },
      },
    },
  },
}

技术实现

  • 使用 Playwright 进行浏览器自动化
  • 会话状态加密存储
  • 模拟真人操作间隔,降低风控风险

常见问题

Q: 登录后还是提示未登录? A: 检查会话文件是否存在,尝试 /xhs-login --logout 后重新登录

Q: 发布失败怎么办? A: 检查图片格式(支持 jpg/png/webp),标题不超过 20 字,内容不超过 1000 字

Q: 触发验证码怎么处理? A: 浏览器会显示验证码页面,手动完成验证后继续操作

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

说人话

去AI味写作技能:将AI生成的文案改写成真人风格,适用于小红书、抖音、微信公众号、微博。 触发词:去AI味、润色文案、生成正文、human写作。 适用场景:AI生成初稿后,执行去AI味处理,使文案读起来自然、有人味、不像机器写的。

Registry SourceRecently Updated
General

Interview Prep Coach

Prepare candidates for technical, system-design, behavioral, case-study, and leadership interviews through diagnostic intake, timeline-based prep plans, mock...

Registry SourceRecently Updated
General

Cold Call Script Generator

Generate personalized cold call openers, voicemail scripts, cold email opening lines, and full multi-touch outbound sequences for B2B sales reps, SDRs, and f...

Registry SourceRecently Updated
General

Postzee Skill

Generate AI images/videos and post to 30+ social media platforms with Postzee. Use when the user wants to create AI media, generate images or videos, optimiz...

Registry SourceRecently Updated