Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

小红书运营团队指南

团队架构

┌─────────────────────────────────────────────────────────────────────┐
│                         Boss (主脑)                                 │
│                     任务协调 · 质量把控                               │
└─────────────────────────────────────────────────────────────────────┘
                              │
        ┌─────────────────────┼─────────────────────┐
        ▼                     ▼                     ▼
┌───────────────┐     ┌───────────────┐     ┌───────────────┐
│ DataCollector │     │   Analyst     │     │  Copywriter   │
│   数据收集     │────▶│   数据分析     │────▶│   文案策划     │
└───────────────┘     └───────────────┘     └───────────────┘
                                                      │
                                                      ▼
                                              ┌───────────────┐
                                              │   Designer    │
                                              │   视觉设计     │
                                              └───────────────┘
                                                      │
                                                      ▼
                                              ┌───────────────┐
                                              │   Publisher   │
                                              │   内容发布     │
                                              └───────────────┘

工作流程

  1. Boss 主脑接收任务 → 分解为子任务,分发给各 Agent
  2. DataCollector 收集小红书数据(搜索笔记、获取详情、采集评论)
  3. Analyst 分析数据,提炼洞察(爆款趋势、用户画像、标签分析)
  4. Copywriter 基于洞察创作文案(话题搜索、趋势发现、标签策略)
  5. Designer 进行视觉设计(配图制作)
  6. Publisher 发布内容(验证话题/位置、上传媒体、发布笔记、追踪效果)
  7. Boss 审核最终成果并反馈

各 Agent 配置说明

每个 Agent 拥有独立的:

  • ✅ 工作目录(以名称命名)
  • ✅ AGENTS.md(工作规范)
  • ✅ SOUL.md(人格设定)
  • ✅ IDENTITY.md(身份信息)
  • ✅ USER.md(用户信息)
  • ✅ MEMORY.md(长期记忆)
  • ✅ TOOLS.md(环境配置)
  • ✅ skills/(技能目录 - 已集成 Spider_XHS 技能库)

技能系统(基于 Spider_XHS)

所有技能基于 E:\xhs_workspace\Spider_XHS-master 的 API 层实现,签名参数(x-s / x-t / x-s-common 等)已在底层透明处理。每个 skill 提供独立的 CLI 入口,输出统一 JSON 格式 {success, msg, data}

1️⃣ DataCollector — 数据采集员

技能目录: DataCollector/skills/xhs-data-collection/

命令 功能 使用示例
check_cookie 验证 Cookie 有效性 python tool_runner.py check_cookie
search_notes 搜索笔记(支持排序/类型/时间筛选) python tool_runner.py search_notes "美食" --num 20 --sort_type 2
get_note_detail 获取笔记详情(含无水印图片/视频) python tool_runner.py get_note_detail "笔记URL"
get_user_info 获取用户信息 python tool_runner.py get_user_info "user_id"
get_user_notes 获取用户所有笔记 python tool_runner.py get_user_notes "用户主页URL" --max_num 30
get_comments 获取笔记全部评论(含子回复) python tool_runner.py get_comments "笔记URL"
search_users 搜索用户 python tool_runner.py search_users "美食博主" --num 10
get_homefeed 获取频道推荐笔记 python tool_runner.py get_homefeed "美食" --num 30
get_trending_tags 提取热门标签 python tool_runner.py get_trending_tags "关键词" --num 30

依赖: pip install PyExecJS requests loguru python-dotenv retry openpyxl aiohttp opencv-python numpy qrcode + Node.js crypto-js jsdom


2️⃣ Analyst — 数据分析师

技能目录: Analyst/skills/xhs-data-analysis/

命令 功能 使用示例
analyze_notes 笔记分析(互动统计、Top10 爆款、标签分布、类型分布) python tool_runner.py analyze_notes --input notes.json
analyze_user 用户画像分析(粉丝质量、影响力等级) python tool_runner.py analyze_user --input user.json
analyze_comments 评论分析(热门评论、活跃用户) python tool_runner.py analyze_comments --input comments.json
tag_frequency 标签词频统计 python tool_runner.py tag_frequency --input notes.json --top 20
structure_note 笔记数据结构化(原始API→标准格式) python tool_runner.py structure_note --input raw.json

依赖: pip install PyExecJS requests loguru python-dotenv openpyxl


3️⃣ Copywriter — 文案策划师

技能目录: Copywriter/skills/xhs-topic-search/

命令 功能 使用示例
search_topic 话题搜索(验证话题有效性) python tool_runner.py search_topic --keyword "美食"
search_keyword 搜索推荐关键词(选题灵感) python tool_runner.py search_keyword --word "贵州"
trending_tags 热门标签提取(从笔记数据中) python tool_runner.py trending_tags --input notes.json --top 20
get_trending 获取频道热门趋势(实时热点) python tool_runner.py get_trending --category "美食" --num 30

依赖: pip install PyExecJS requests loguru python-dotenv


4️⃣ Publisher — 内容发布员

技能目录: Publisher/skills/xhs-content-publish/

命令 功能 使用示例
validate_topic 验证话题标签是否有效 python tool_runner.py validate_topic --keyword "美食"
validate_location 验证地理位置是否匹配 python tool_runner.py validate_location --keyword "南京"
upload_image 上传图片到创作者平台 python tool_runner.py upload_image --image_path "cover.jpg"
upload_video 上传视频并等待转码完成 python tool_runner.py upload_video --video_path "promo.mp4"
publish_note 发布笔记(核心命令,支持图集/视频,自动完成上传+话题验证+发布) python tool_runner.py publish_note --title "标题" --desc "正文" --images "img1.jpg,img2.jpg" --topics "美食,探店"
list_published 查看已发布笔记列表 python tool_runner.py list_published --num 10
track_performance 追踪笔记互动数据(点赞/收藏/评论/分享) python tool_runner.py track_performance --note_id "xxx" --xsec_token "xxx"

依赖: pip install PyExecJS requests loguru python-dotenv opencv-python numpy qrcode + Node.js crypto-js jsdomCookie 需使用创作者平台 creator.xiaohongshu.com 的登录态


完整协作链路示例

# Step 1: DataCollector 采集
cd DataCollector/skills/xhs-data-collection
python tool_runner.py search_notes "贵州旅游" --num 30 --sort_type 2 > notes_raw.json

# Step 2: Analyst 分析
cd ../../../Analyst/skills/xhs-data-analysis
python tool_runner.py analyze_notes --input ../../../DataCollector/skills/xhs-data-collection/notes_raw.json > analysis.json
python tool_runner.py tag_frequency --input ../../../DataCollector/skills/xhs-data-collection/notes_raw.json --top 15

# Step 3: Copywriter 话题研究
cd ../../../Copywriter/skills/xhs-topic-search
python tool_runner.py get_trending --category "旅游" --num 20
python tool_runner.py search_topic --keyword "贵州旅游"

# Step 4: Publisher 发布(接收文案+配图后)
cd ../../../Publisher/skills/xhs-content-publish
python tool_runner.py publish_note --title "标题" --desc "正文" --images "cover.jpg,pic1.jpg" --topics "贵州旅游,美食" --location "贵州"

# Step 5: Publisher 确认+追踪
python tool_runner.py list_published --num 5
python tool_runner.py track_performance --note_id "xxx" --xsec_token "xxx"

环境准备

Python 路径配置

所有 tool_runner 自动添加 Spider_XHS-master 到 Python 路径,无需手动设置。

Cookie 配置

  • PC 端 Cookie(DataCollector / Analyst / Copywriter):从 https://www.xiaohongshu.com 获取
  • 创作者平台 Cookie(Publisher):从 https://creator.xiaohongshu.com 获取
  • 配置在 Spider_XHS-master/.envCOOKIES 字段

依赖安装

# Python 依赖(全部)
pip install PyExecJS requests loguru python-dotenv retry openpyxl aiohttp opencv-python numpy qrcode

# Node.js 依赖(在 Spider_XHS-master 目录下执行)
cd E:\xhs_workspace\Spider_XHS-master
npm install crypto-js jsdom

启动方式

每个 Agent 需要作为独立的 OpenClaw 实例启动,配置独立的工作目录:

# 启动各个 Agent
openclaw start --workspace "E:\xhs_workspace\Boss"
openclaw start --workspace "E:\xhs_workspace\DataCollector"
openclaw start --workspace "E:\xhs_workspace\Analyst"
openclaw start --workspace "E:\xhs_workspace\Copywriter"
openclaw start --workspace "E:\xhs_workspace\Designer"
openclaw start --workspace "E:\xhs_workspace\Publisher"

创建时间: 2026-06-01 最后更新: 2026-06-02 团队成员: Boss, DataCollector, Analyst, Copywriter, Designer, Publisher 技能依赖: Spider_XHS-master(小红书数据采集与发布 SDK)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages