← 返回
未分类

小红书长文-谷歌浏览器

Auto-publish Xiaohongshu long-form notes on Linux (Chrome attach/VNC). Agent writes title+body then exec xhs_publish.sh with --publish --submit. Triggers 小红书...
在 Linux 上通过 Chrome 挂载/VNC 自动发布小红书长笔记。Agent 撰写标题和正文后执行 xhs_publish.sh --publish --submit,触发小红书发布。
m-lemon m-lemon 来源
未分类 clawhub v0.0.3 3 版本 100000 Key: 无需
★ 0
Stars
📥 315
下载
💾 0
安装
3
版本
#latest

概述

Xiaohongshu publish (Chrome attach / Linux VNC)

Self-contained skill: {baseDir}/scripts/. Uses the same Chrome profile as zhihu-publish-attach (~/.chrome-zhihu-automation, port 9222).

Publish 长文 via creator center (写长文 → 新的创作 → 一键排版 → 下一步 → 发布).

Exec entry: bash {baseDir}/scripts/xhs_publish.sh

First-time setup

bash {baseDir}/scripts/setup.sh
bash {baseDir}/scripts/install_chromedriver.sh   # skip if already done for Zhihu
bash {baseDir}/scripts/start_chrome_debug.sh

In VNC: log in to creator.xiaohongshu.com in the same Chrome window (主站 www 不必单独登录,长文发帖只依赖创作者中心会话).

Verify:

bash {baseDir}/scripts/xhs_publish.sh --check --check-creator --json

See {baseDir}/references/shared-chrome-with-zhihu.md.

Parameters

ParameterDescription
------------------------
--publishLong-form flow (写长文)
--title "..."Note title
--body-file /pathPreferred — note body
--body "..."Short body
--tags "a,b,c"Hashtags (appended as #a #b if not in body)
--submitClick 发布 after 下一步 (real post)
--jsonMachine-readable result
--check-creatorWith --check, verify creator center login
--no-ensure-chromeSkip auto-start Chrome

--image-file is ignored (long-form only).

Agent workflow (default auto publish)

  1. Write /tmp/xhs_post_body.txt.
  2. Exec:
bash {baseDir}/scripts/xhs_publish.sh \
  --publish \
  --title "标题" \
  --body-file /tmp/xhs_post_body.txt \
  --tags "数码,好物" \
  --submit \
  --json
  1. Success: "ok": true, "mode": "longform", "submitted": true.

ClawMart dual-platform: same Chrome session as Zhihu. Use /tmp/xhs_post_body.txt separately from Zhihu body file.

Safety

  • Default --submit when user/task requests real post.
  • Without --submit, script stops after 下一步 (dry-run).
  • Do not put long body in shell args — use --body-file.

版本历史

共 3 个版本

  • v0.0.3 当前
    2026-06-01 21:18
  • v0.0.2
    2026-06-01 12:49
  • v0.0.1
    2026-05-31 13:49

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,413 📥 325,561
ai-agent

Agent Browser

rez0
用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。
★ 845 📥 327,208
ai-agent

self-improving agent

pskoett
记录自身发现以实现自我改进的技能
★ 4,124 📥 874,362