10-of-my-most-popular-text-to-image-series-prompts-78b0897e
generate a bunch of images, then you curate the results to handpick the best ones
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.
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
SkillHub CLI
skillhub install hviktortsoi/xhs-video-downloader打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。
将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。
Download videos from Xiaohongshu (小红书) by extracting the real CDN URL from the page.
Xiaohongshu videos use blob URLs in the browser, which cannot be downloaded directly. This skill:
Use the browser tool to extract the video URL:
browser action=navigate targetUrl="https://www.xiaohongshu.com/explore/NOTE_ID"
(() => {
const html = document.documentElement.outerHTML;
const mp4Matches = html.match(/https?:\/\/[^"\s]+\.mp4[^"\s]*/g);
if (mp4Matches) return [...new Set(mp4Matches)];
return null;
})()
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/"
For pages that don't require authentication:
python3 scripts/download_video.py "https://www.xiaohongshu.com/explore/NOTE_ID"
Note: The Python script may not work for all pages due to:
xhscdn.com CDN~/Downloads/xiaohongshu/
https://sns-video-*.xhscdn.com/stream/.../*.mp4
这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。
# 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`generate a bunch of images, then you curate the results to handpick the best ones
generate a bunch of images, then you curate the results to handpick the best ones
Productivity system based on Maya calendar with 13 natural tones for project management and personal development
Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.