xiaohongshu work metadata extraction and parsing
Parses XiaoHongShu work URLs and extracts structured metadata including title, description, author info, media counts, and engagement metrics. Uses HTTP request interception with custom headers and cookie-based authentication to bypass platform restrictions, then deserializes JSON responses from XHS API endpoints into typed data structures for downstream processing.
Unique: Implements multi-interface metadata extraction (CLI, TUI, API, MCP, UserScript) all converging on a single XHS core class, enabling consistent parsing logic across 5 different execution modes while maintaining cookie-based authentication state management through a centralized configuration system.
vs alternatives: Unified architecture across multiple interfaces (CLI, web API, MCP, browser script) provides flexibility that single-interface tools lack, while centralized XHS class prevents code duplication and ensures consistent metadata extraction logic.
watermark-free media download with format conversion
Downloads images and videos from XiaoHongShu without platform watermarks by fetching clean media URLs from the platform's CDN, then stores files locally with configurable naming patterns and folder organization. Implements async batch downloading using httpx with connection pooling, progress tracking, and retry logic for failed transfers.
Unique: Implements a dedicated Download Manager module with async batch processing, connection pooling, and configurable retry logic that operates independently of the extraction pipeline, allowing parallel downloads while maintaining rate-limit compliance through a shared HTTP client instance.
vs alternatives: Async batch downloading with connection pooling achieves higher throughput than sequential downloaders, while configurable naming templates and folder organization provide flexibility that generic download tools lack.
batch url extraction from user profiles, collections, and search results
Extracts work URLs in bulk from XiaoHongShu user profiles (published works, favorites, likes), collections, and search results by paginating through API responses and collecting all work IDs. Implements pagination logic with configurable page size and maximum result limits, deduplication of extracted URLs, and progress tracking for long-running extractions. Returns a list of work URLs ready for batch downloading.
Unique: Implements pagination logic that automatically handles XHS API responses to extract all work URLs from a user profile or search result, with deduplication and progress tracking built-in.
vs alternatives: Automatic pagination and deduplication eliminate manual URL collection, while progress tracking provides visibility into long-running extractions that single-request tools lack.
internationalization (i18n) with multi-language ui support
Provides multi-language support for CLI, TUI, and API responses through a centralized i18n system that loads language files (JSON) at startup and substitutes localized strings throughout the application. Supports Chinese (Simplified/Traditional) and English with fallback to English if requested language is unavailable. Language selection is configurable via settings.json or environment variables.
Unique: Implements a centralized i18n system that loads language files at startup and provides localized strings throughout CLI, TUI, and API modes, enabling consistent multi-language support without code duplication.
vs alternatives: Centralized i18n system eliminates scattered hardcoded strings, while JSON-based language files enable non-developers to contribute translations.
async http client with connection pooling and retry logic
Implements a shared async HTTP client using httpx with connection pooling, automatic retry on transient failures (5xx errors, timeouts), exponential backoff, and custom headers (User-Agent, cookies) for XHS API requests. Reuses the same client instance across all requests to maximize connection reuse and minimize overhead. Implements timeout handling and graceful degradation on network errors.
Unique: Implements a shared async HTTP client with connection pooling and exponential backoff retry logic that is reused across all execution modes, ensuring efficient resource utilization and consistent error handling.
vs alternatives: Connection pooling and async I/O provide higher throughput than sequential HTTP requests, while automatic retries improve reliability for batch operations without explicit error handling.
pyinstaller executable compilation with single-file distribution
Builds standalone executables for Windows, macOS, and Linux using PyInstaller, bundling Python runtime, dependencies, and application code into a single distributable file. Implements CI/CD workflows (GitHub Actions) that automatically compile executables on each release, with platform-specific optimizations and code signing for macOS. Executables include all required resources (i18n files, config templates) without external dependencies.
Unique: Implements automated PyInstaller builds via GitHub Actions that produce platform-specific executables with bundled resources, eliminating the need for users to install Python or manage dependencies.
vs alternatives: Single-file executables are easier to distribute than Python packages, while CI/CD automation ensures consistent builds across platforms without manual compilation.
sqlite-based download history and metadata persistence
Maintains a local SQLite database tracking all downloaded works, including work IDs, metadata snapshots, download timestamps, and file paths. Implements schema migrations for version compatibility, deduplication checks to prevent re-downloading, and query interfaces for filtering by date, author, or content type. Database operations use async SQLite bindings to avoid blocking the main event loop.
Unique: Integrates async SQLite operations into the main event loop using aiosqlite, enabling non-blocking database queries during batch downloads while maintaining ACID guarantees for deduplication checks and metadata snapshots.
vs alternatives: Async SQLite integration prevents blocking the download pipeline on database writes, while local persistence avoids external database dependencies that REST API tools require.
multi-interface request routing and execution mode dispatch
Single entry point (main.py) dispatches to five distinct execution modes (CLI, TUI, API Server, MCP Server, UserScript) based on command-line arguments or environment configuration. All modes converge on the shared XHS core class, ensuring consistent business logic while allowing interface-specific input/output handling. Uses a layered architecture where the Manager class handles configuration, authentication, and resource lifecycle across all modes.
Unique: Implements a unified core XHS class that all five execution modes depend on, eliminating code duplication while allowing each interface to handle input/output independently. The Manager class provides a shared lifecycle for configuration, cookies, and resource cleanup across all modes.
vs alternatives: Single codebase supporting CLI, TUI, API, MCP, and UserScript eliminates maintenance burden of separate tools, while unified core logic ensures consistent behavior across all interfaces.
+6 more capabilities