XHS-Downloader collects Xiaohongshu post metadata and download URLs, saves images and video, and offers GUI, TUI, CLI, API, MCP, Docker, and browser script workflows.
Overview
XHS-Downloader targets Xiaohongshu (RedNote) links: it extracts post information, resolves download addresses, and saves image, video, cover, and live photo files. It can skip previously downloaded IDs, store metadata in SQLite, organize files per author or post, and honor custom naming and image format preferences.
Desktop users on macOS and Windows can run packaged builds; others can use Python source with pip or uv, or Docker images from public registries. Modes include interactive GUI, TUI, command-line downloads, a FastAPI HTTP API with bearer auth, and an optional MCP server for tool integrations. A Tampermonkey userscript extracts links in the browser and can push download jobs to a running instance.
Optional cookie configuration improves video quality; clipboard monitoring and browser cookie import are supported on some platforms with noted limitations under Docker. Settings live in a Volume folder with proxy, delay, retry, and author alias options. Programmatic use is supported through Python APIs for embedding in other tools.
Batch link input accepts space-separated URLs. The tool records downloads to avoid repeats, supports resumable transfers, and documents authentication tokens for API and MCP access bound to a local secret file.
Key features
- Post metadata and download URL extraction
- GUI, TUI, and command-line modes
- HTTP API and MCP server modes
- Docker images for TUI, API, or MCP
- Tampermonkey browser userscript
- SQLite download history and skip logic
- Clipboard monitor and script server
- Custom filenames and image formats
Use cases
- Archiving Xiaohongshu posts locally
- Scripted batch downloads via CLI
- API-driven integration for developers
- Browser link harvest with userscript