Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计异常

xiaohongshu-downloader小红书下载器

Agent Skill

xiaohongshu-downloader 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,023

周安装

86

GitHub Stars

16

下载量

709
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:xiaohongshu-downloader(小红书下载器)
来源仓库:https://github.com/smile7up/xiaohongshu-downloader
仓库路径:skills/xiaohongshu-downloader
安装命令:
npx skills add https://github.com/smile7up/xiaohongshu-downloader --skill xiaohongshu-downloader
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/smile7up/xiaohongshu-downloader --skill xiaohongshu-downloader

简介

xiaohongshu-downloader 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位候选结果。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,具体用法需结合 README 进一步确认。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 当前分类为研究检索,适用于主流 AI 编程工具。

SKILL.md

Xiaohongshu Video Downloader & Summarizer

Download videos from Xiaohongshu (小红书/RedNote) and optionally generate a full resource pack: video + audio + subtitles + transcript + AI summary.

Workflow

Follow these 6 steps in order:

Step 1: Check Dependencies

Verify required tools are installed:

yt-dlp --version
ffmpeg -version

Both must be available. If missing, instruct the user to install:

  • brew install yt-dlp (macOS) or pip install yt-dlp
  • brew install ffmpeg (macOS)

Step 2: Get Video Information

/opt/homebrew/Caskroom/miniconda/base/envs/myenv/bin/python scripts/download_xiaohongshu.py "URL" --list-formats

This shows available formats and verifies the URL works with cookie authentication.

Step 3: Download Video + Extract Audio

For basic download (video only, backward compatible with v1.0):

/opt/homebrew/Caskroom/miniconda/base/envs/myenv/bin/python scripts/download_xiaohongshu.py "URL"

For full resource pack (video + audio + subtitles + transcript):

/opt/homebrew/Caskroom/miniconda/base/envs/myenv/bin/python scripts/download_xiaohongshu.py "URL" --full

For full resource pack + AI summary preparation:

/opt/homebrew/Caskroom/miniconda/base/envs/myenv/bin/python scripts/download_xiaohongshu.py "URL" --summary

The --full flag creates a folder ~/Downloads/<video title>/ containing:

  • video.mp4 — original video
  • audio.mp3 — extracted audio
  • subtitle.vtt — WebVTT subtitles (via 3-tier strategy)
  • transcript.txt — plain text transcription

The --summary flag implies --full and additionally saves .meta.json for AI summary generation.

Step 4: Subtitle Acquisition (Automatic — 3-Tier Strategy)

The script automatically tries these strategies in order:

  1. Manual subtitlesyt-dlp --write-subs --sub-lang zh,en,zh-Hans,zh-CN
  2. Auto-generated subtitlesyt-dlp --write-auto-subs
  3. Whisper local transcription — Falls back to parallel_transcribe.py using faster-whisper

Step 5: Generate Transcript (Automatic)

The script automatically strips timestamps from VTT to produce transcript.txt.

Step 6: AI Summary (Claude generates summary.md)

If the user requested a summary (via --summary flag or by asking to "summarize"):

  1. Read the transcript file: ~/Downloads/<video title>/transcript.txt
  2. Read the metadata file: ~/Downloads/<video title>/.meta.json
  3. Read the summary prompt template: reference/summary-prompt.md
  4. Replace the template placeholders with actual values:

- {{TITLE}} — from.meta.json - {{URL}} — from.meta.json - {{DURATION}} — from.meta.json - {{PLATFORM}} — "Xiaohongshu (小红书)" - {{TRANSCRIPT}} — contents of transcript.txt

  1. Generate the summary following the template structure.
  2. Save the result to: ~/Downloads/<video title>/summary.md

Options Reference

OptionDescriptionDefault
-o, --outputOutput directory~/Downloads
-q, --qualityVideo quality (best, 1080p, 720p, 480p)best
--browserBrowser for cookies (chrome, firefox, safari, none)chrome
-a, --audio-onlyDownload audio only as MP3false
--list-formatsList available formatsfalse
--fullFull resource pack modefalse
--summaryAI summary mode (implies --full)false

Output Structure

Basic mode (default)

~/Downloads/
└── <title> [<id>].mp4

Full resource pack mode (--full or --summary)

~/Downloads/<video title>/
├── video.mp4          # Original video
├── audio.mp3          # Extracted audio
├── subtitle.vtt       # WebVTT subtitles
├── transcript.txt     # Plain text transcript
├── .meta.json         # Video metadata (--summary only)
└── summary.md         # AI-generated summary (--summary only, written by Claude)

Supported URL Formats

FormatExample
Explore linkhttps://www.xiaohongshu.com/explore/676a35670000000013002578
Discovery linkhttps://www.xiaohongshu.com/discovery/item/676a35670000000013002578?xsec_token=TOKEN
Short linkhttp://xhslink.com/a/xxxxx

Troubleshooting

ProblemSolution
No video formats foundLog into xiaohongshu.com in browser first, use --browser chrome
Unable to extract initial stateCAPTCHA triggered — open URL in browser, solve it, retry
Link expiredCopy fresh share link (tokens expire)
No subtitles foundScript will fall back to Whisper transcription automatically
Whisper not availableInstall uv (brew install uv) for automatic dependency management

Important Notes

  • Always use the full share URL (with xsec_token) for best results
  • Log into xiaohongshu.com in your browser before downloading
  • Maximum video quality is typically 1080p (platform limitation)
  • Whisper transcription requires uv for automatic dependency management, or faster-whisper installed manually
  • Respect copyright and Xiaohongshu's terms of service

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.6%
按下载量换算252

Claude

32.75%
按下载量换算232

Cursor

17.16%
按下载量换算122

Gemini CLI

8.66%
按下载量换算61

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

未通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills