返回顶部
x

xiaohongshu-downloader

Download videos from Xiaohongshu (小红书) pages. Use when the user wants to save or download a video from a xiaohongshu.com URL, or mentions "小红书视频下载", "保存小红书视频", or similar requests.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
581
下载量
0
收藏
概述
安装方式
版本历史

xiaohongshu-downloader

# Xiaohongshu Video Downloader Download videos from Xiaohongshu (小红书) by extracting the real CDN URL from the page. ## How It Works Xiaohongshu videos use blob URLs in the browser, which cannot be downloaded directly. This skill: 1. Uses browser automation to load the page (required for JS rendering) 2. Extracts the real CDN video URL from the page HTML 3. Downloads the video with proper headers ## Method 1: Browser Automation (Recommended) Use the browser tool to extract the video URL: 1. Navigate to the Xiaohongshu page: ``` browser action=navigate targetUrl="https://www.xiaohongshu.com/explore/NOTE_ID" ``` 2. Extract the video URL with JavaScript: ```javascript (() => { const html = document.documentElement.outerHTML; const mp4Matches = html.match(/https?:\/\/[^"\s]+\.mp4[^"\s]*/g); if (mp4Matches) return [...new Set(mp4Matches)]; return null; })() ``` 3. Download with curl: ```bash curl -L -o output.mp4 "<VIDEO_URL>" \ -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36" \ -H "Referer: https://www.xiaohongshu.com/" ``` ## Method 2: Python Script For pages that don't require authentication: ```bash python3 scripts/download_video.py "https://www.xiaohongshu.com/explore/NOTE_ID" ``` Note: The Python script may not work for all pages due to: - JavaScript rendering requirements - Authentication/login requirements - Rate limiting ## Notes - Videos are typically hosted on `xhscdn.com` CDN - User-Agent and Referer headers are required to avoid 403 errors - Output directory: `~/Downloads/xiaohongshu/` - Video URLs follow pattern: `https://sns-video-*.xhscdn.com/stream/.../*.mp4`

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 xhs-video-downloader-1776293184 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 xhs-video-downloader-1776293184 技能

通过命令行安装

skillhub install xhs-video-downloader-1776293184

下载 Zip 包

⬇ 下载 xiaohongshu-downloader v1.0.0

文件大小: 3.92 KB | 发布时间: 2026-4-16 18:27

v1.0.0 最新 2026-4-16 18:27
Initial release - Download videos from Xiaohongshu (小红书) via browser automation

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部