openbotx
An open-source platform for orchestrating AI agents — secure, simple, and built for everyone. Multi-agent, real-time task board, web control panel, skills system, browser automation, multi-provider, scheduler,...
使用xhs-kit Python库高效发布小红书内容,无需浏览器,支持多账号和定时发布
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
SkillHub CLI
skillhub install glittering/xhs-kit-publisherInspect the source and compatibility requirements, then follow its installation steps.
Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.
使用 xhs-kit Python库实现高效、稳定的小红书内容发布,无需打开浏览器,支持多账号管理和定时发布。
| 特性 | 传统浏览器方式 | xhs-kit方式 |
|---|---|---|
| 效率 | 低(3-5分钟) | ✅ 高(~60秒) |
| 稳定性 | 低(浏览器崩溃) | ✅ 高 |
| 多账号 | ❌ 不支持 | ✅ 支持 |
| 资源占用 | 高(开浏览器) | ✅ 低 |
| 定时发布 | 需要外部调度 | ✅ 内置支持 |
# 1. 创建虚拟环境
python3 -m venv xhs-env
source xhs-env/bin/activate
# 2. 安装xhs-kit
pip install -U xhs-kit
# 3. 安装Playwright浏览器
playwright install chromium
# 4. 安装其他依赖
pip install pillow requests markdown pyyaml
# 终端二维码登录(推荐)
xhs-kit login-qrcode --terminal
# 或保存二维码图片
xhs-kit login-qrcode --save qrcode.png
xhs-kit status
# 基本发布
xhs-kit publish \
--title "标题(不超过20字)" \
--content "正文内容..." \
--image /path/to/image.jpg \
--tag "标签1" \
--tag "标签2"
# 定时发布
xhs-kit publish \
--title "标题" \
--content "内容" \
--schedule-at "2026-03-08T11:00:00+08:00"
xhs-kit-publisher/
├── SKILL.md # 本文档
├── publish_xhs.sh # 发布脚本示例
├── xhs_kit_guide.md # 完整使用指南
├── config/
│ ├── account1_cookies.json # 账号1 cookies
│ └── account2_cookies.json # 账号2 cookies
├── scripts/
│ ├── multi_account_publish.sh # 多账号发布脚本
│ └── schedule_publish.py # 定时发布脚本
└── examples/
├── simple_publish.md # 简单发布示例
└── advanced_features.md # 高级功能示例
# 登录不同账号
xhs-kit login-qrcode --terminal --cookies-file config/account1.json
xhs-kit login-qrcode --terminal --cookies-file config/account2.json
# 使用指定账号发布
xhs-kit publish --title "..." --cookies-file config/account1.j...
These signals come from indexed source analysis and may lag behind changes. Check the current source files.
# xhs-kit 小红书发布技能
使用 `xhs-kit` Python库实现高效、稳定的小红书内容发布,无需打开浏览器,支持多账号管理和定时发布。
## 🎯 核心优势
| 特性 | 传统浏览器方式 | xhs-kit方式 |
|------|---------------|------------|
| **效率** | 低(3-5分钟) | ✅ **高(~60秒)** |
| **稳定性** | 低(浏览器崩溃) | ✅ **高** |
| **多账号** | ❌ 不支持 | ✅ **支持** |
| **资源占用** | 高(开浏览器) | ✅ **低** |
| **定时发布** | 需要外部调度 | ✅ **内置支持** |
## 📦 安装
```bash
# 1. 创建虚拟环境
python3 -m venv xhs-env
source xhs-env/bin/activate
# 2. 安装xhs-kit
pip install -U xhs-kit
# 3. 安装Playwright浏览器
playwright install chromium
# 4. 安装其他依赖
pip install pillow requests markdown pyyaml
```
## 🔑 快速开始
### 1. 登录小红书账号
```bash
# 终端二维码登录(推荐)
xhs-kit login-qrcode --terminal
# 或保存二维码图片
xhs-kit login-qrcode --save qrcode.png
```
### 2. 检查登录状态
```bash
xhs-kit status
```
### 3. 发布内容
```bash
# 基本发布
xhs-kit publish \
--title "标题(不超过20字)" \
--content "正文内容..." \
--image /path/to/image.jpg \
--tag "标签1" \
--tag "标签2"
# 定时发布
xhs-kit publish \
--title "标题" \
--content "内容" \
--schedule-at "2026-03-08T11:00:00+08:00"
```
## 📁 项目结构
```
xhs-kit-publisher/
├── SKILL.md # 本文档
├── publish_xhs.sh # 发布脚本示例
├── xhs_kit_guide.md # 完整使用指南
├── config/
│ ├── account1_cookies.json # 账号1 cookies
│ └── account2_cookies.json # 账号2 cookies
├── scripts/
│ ├── multi_account_publish.sh # 多账号发布脚本
│ └── schedule_publish.py # 定时发布脚本
└── examples/
├── simple_publish.md # 简单发布示例
└── advanced_features.md # 高级功能示例
```
## 🚀 核心功能
### 1. 多账号管理
```bash
# 登录不同账号
xhs-kit login-qrcode --terminal --cookies-file config/account1.json
xhs-kit login-qrcode --terminal --cookies-file config/account2.json
# 使用指定账号发布
xhs-kit publish --title "..." --cookies-file config/account1.j...An open-source platform for orchestrating AI agents — secure, simple, and built for everyone. Multi-agent, real-time task board, web control panel, skills system, browser automation, multi-provider, scheduler,...
Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...
OpenClaw skill for 知识星球 / ZSXQ digests with token-first auth and browser recovery.
🌐 OpenClaw skill for Browser-Use — AI-powered browser automation for complex multi-step workflows (login, form filling, scraping, posting)