Install
openclaw skills install xhs-video-downloaderDownload videos from Xiaohongshu (小红书) pages. Use when the user wants to save or download a video from a xiaohongshu.com URL, or mentions "小红书视频下载", "保存小红书视频...
openclaw skills install xhs-video-downloaderDownload 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