Building a Watermark-Free Xiaohongshu Downloader: Technical Challenges and Anti-Scraping Strategies
说明与用途
作者开发了一个免费的网页工具,用于下载小红书无水印内容。该解决方案使用 Next.js 和 Redis,通过获取原始源 URL 来绕过 CDN 层的水印。它处理各种链接格式,并实施了缓存和速率限制等防封锁措施。令人惊讶的是,印度尼西亚成为了主要用户群。
问题
Users need a reliable way to download videos and images from Xiaohongshu (RedNote) without watermarks, poor quality, or security risks associated with third-party APKs and sketchy online tools.
结果
The author successfully built a lightweight Next.js application that bypasses Xiaohongshu's CDN watermarks by fetching original source URLs. The tool handles complex link formats, implements anti-scraping countermeasures like caching and throttling, and serves a significant international audience, particularly from Indonesia.
工作流
- User pastes a Xiaohongshu share link (short link, full text, or explore URL).
- Link Parser detects format and resolves redirects.
- System checks Redis cache for existing results.
- If cache miss, Metadata Fetcher generates signatures, handles cookies, and calls the API.
- Media Extractor identifies direct CDN source URLs for videos or images.
- System serves a preview card with title, author, and thumbnail.
- User downloads the file via direct CDN URL or proxied stream.
证据
Xiaohongshu's watermark isn't burned into the original file. It's applied at the CDN layer when served through certain endpoints. The original MP4 on the CDN source is clean.
63% of my traffic comes from Indonesia.
Total infra cost: under $20/month at current traffic (~15k visits/month).
- 记录日期: 2026-09-06T12:06:44.663Z