Building a Watermark-Free Xiaohongshu Downloader: Technical Challenges and Anti-Scraping Strategies
Описание и применение
Автор разработал бесплатный веб-инструмент для скачивания видео и изображений из Xiaohongshu без водяных знаков. Решение использует Next.js и Redis, обходя 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