Overview
- Skill Key
- hviktortsoi/xhs-video-downloader
- Author
- hviktortsoi
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/hviktortsoi/xhs-video-downloader
- Latest Commit SHA
- d96d04bf4342806080133633ad828ae651ae2107
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.
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 xiaohongshu-downloader 技能。 若已安装,则直接安装 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`
capt-marbles
Task Router
capncoconut
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay, check marketplace stats, or manage agent credentials. Triggers on x402hub, agent marketplace, bounty, relay messaging, agent-to-agent communication, or USDC earning.
capevace
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
captchasco
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.
carol-gutianle
name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}
canbirlik
Controls Wiz smart bulbs (turn on/off, RGB colors, disco mode) via local WiFi.