Skip to content
Agentmart
Submit a tool

xiaohongshu-ingest

小红书笔记采集 → 统一 frontmatter Markdown → 爆款拆解 + 衍生选题。 支持笔记链接和 xhslink 短链;爆款拆解按「人群×场景×痛点×情绪×钩子」生成可复用选题。

Skill by chubbyguan

IndexedMIT★ 1,278
Write a review

Chalk Labs

Need help deploying xiaohongshu-ingest?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/chubbyguan-xiaohongshu-ingest

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

小红书笔记采集 → 统一 frontmatter Markdown → 爆款拆解 + 衍生选题。 支持笔记链接和 xhslink 短链;爆款拆解按「人群×场景×痛点×情绪×钩子」生成可复用选题。

Use cases: documents, web-scraping, marketing-content

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/xiaohongshu-ingest

What's inside

Skill name
xiaohongshu-ingest
Description
小红书笔记采集 → 统一 frontmatter Markdown → 爆款拆解 + 衍生选题。 支持笔记链接和 xhslink 短链;爆款拆解按「人群×场景×痛点×情绪×钩子」生成可复用选题。
License
MIT
Metadata
tags: ["content", "xiaohongshu", "ingest", "hook-analysis", "topic"] · version: 1.0.0 · category: content · triggers: ["用户发送小红书笔记链接", "采集这篇小红书笔记", "拆解这个爆款笔记", "帮我做小红书选题"]
Instructions
69 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (4)

  • SKILL.md
  • requirements.txt
  • analyze_hook.py · scripts/
  • fetch_note.py · scripts/

SKILL.md (first lines)

# 小红书采集 + 爆款拆解 Skill

把小红书笔记抓成结构化 Markdown 入库,再用 DeepSeek 拆解爆款逻辑、衍生可直接写的选题。
**自动区分图文与视频笔记**:图文 → 下载图片本地嵌入;视频 → 像抖音那样转成文字稿。
补齐了仓库在「中文内容采集」上最大的平台缺口,也是「采集 → 选题」创作工作流的起点。

## 环境要求

```bash
# 图文采集零依赖(仅 Python 标准库)

# 视频笔记转录需要(与抖音/B站转录同一套依赖):
pip install funasr modelscope torch torchaudio
# macOS: brew install ffmpeg   |   Ubuntu: sudo apt install ffmpeg

# 强烈建议:配置 cookie 以规避风控(从浏览器登录后复制)
export XHS_COOKIE="你的小红书 cookie 字符串"

# 爆款拆解需要 DeepSeek API Key
export DEEPSEEK_API_KEY="your-api-key"
```

## 使用方法

```bash
# 1) 采集笔记 → 统一 frontmatter Markdown
python scripts/fetch_note.py "https://www.xiaohongshu.com/explore/xxxx" -o ./out
python scripts/fetch_note.py "http://xhslink.com/xxxx" -o ./out
python scripts/fetch_note.py "链接" -o ./out --no-images   # 图文:只留图片链接不下载
python scripts/fetch_note.py "链接" -o ./out --no-video    # 视频:不转录,只留视频链接
python scripts/fetch_note.py "链接" -o ./out --fallback-text 手动正文.txt

# 2) 爆款拆解 → 拆解报告 + 5 条衍生选题
python scripts/analyze_hook.py ./out/某笔记.md -o ./out
```

## 产出

- `fetch_note.py`:标题、正文、标签、作者、互动数据(赞/藏/评)→ 统一 frontmatter Markdown(`platform: xiaohongshu`,含 `note_type: image|video`)。**按笔记类型分流**:
  - **图文笔记**:图片下载到本地 `<标题>.assets/` 并以 `![]()` 嵌入(正文常在图里,本地化后 Obsidian 直接可见)。`--no-images` 只留链接,单张失败自动回退为链接
  - **视频笔记**:提取视频直链 → ffmpeg 抽音频 → SenseVoice 转录为文字稿写入 `## 视频文字稿`。`--no-video` 只留视频链接;缺 funasr/ffmpeg 时自动降级为存链接
- `analyze_hook.py`:目标人群 / 场景 / 痛点 / 情绪价值 / 标题钩子 / 正文结构 / 可复用模板 / 5 条衍生选题(带 `- [ ]` 勾选,可直接进选题库)

## ⚠️ 关于反爬(务必先读)

小红书风控严格,**未登录的纯脚本访问经常被拦**。本 skill 的策略:

1. 优先解析页面内嵌的 `__INITIAL_STATE__` 结构化数据
2. 失败则回退到 `og:` 元标签
3. 仍失败时给出明确提示——此时可**手动复制笔记正文**存成 `.txt`,用 `--fallback-text` 继续生成统一 Markdown,或直接走 `analyze_hook.py` 拆解(拆解环节不依赖抓取)

提供 `XHS_COOKIE` 能显著提高采集成功率。页面结构若调整,需更新 `fetch_note.py` 里的选择器。

## 合规声明

仅供**个人学习与研究**使用。请遵守小红书用户协议与 robots 规则,控制请求频率,不要用于批量抓取、商用爬取或侵犯他人权益的场景。

## 衔接工作流

- 采集产物 → `knowledge-base-management` 入库(统一 frontmatter,按 `platform` 聚合)
- 衍生选题 → 创作者选题流(采集 → 拆解 → 选题库 → 初稿)
- 多篇拆解 → 沉淀「爆款选题库」,对接 `industry-intelligence-radar` 的趋势信号

## 参考

- 小红书爆款方法论:人群 × 场景 × 痛点 + 情绪价值
- [DeepSeek](https://platform.deepseek.com/) — 拆解用 LLM

From chubbyguan/chubbyskills, MIT.

More from chubbyguan/chubbyskills

Compare and alternatives

    Featured in

    Signals

    Stars
    1,278
    Forks
    153
    Open issues
    0
    Last commit (this folder)
    Sep 16, 2026 (1 month ago)
    Last release
    Oct 8, 2026 (23 days ago)

    From GitHub (fetched Oct 24, 2026).

    Details

    Version
    1.0.0
    License
    MIT
    First seen
    Oct 24, 2026
    Last checked
    Oct 24, 2026

    More from chubbyguan

    Done for you

    Rather not set it up yourself?

    Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

    See how we build AI agents →Read the case studies

    Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

    launches shipped
    50+
    launches shipped
    media placements
    500+
    media placements
    founders on every account
    2
    founders on every account

    Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

    Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

    Get xiaohongshu-ingest running in your business

    Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

    Goes to the Chalk Labs founders, not the newsletter. Privacy

    Need help deploying xiaohongshu-ingest?

    CallGet help
    Cite this page

    xiaohongshu-ingest skill. Agent Mart. https://agentmart.dev/skills/chubbyguan-xiaohongshu-ingest (last updated 2026-10-24)