mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
cd48917a39
* fix(xiaohongshu): require signed note urls * chore: drop generated manifest from pr
2.4 KiB
2.4 KiB
Xiaohongshu (小红书)
Mode: 🔐 Browser · Domain: xiaohongshu.com
Commands
| Command | Description |
|---|---|
opencli xiaohongshu search |
Search notes by keyword (returns title, author, likes, URL) |
opencli xiaohongshu note |
Read full note content (title, author, description, likes, collects, comments, tags) |
opencli xiaohongshu comments |
Read comments from a note (--with-replies for nested 楼中楼 replies) |
opencli xiaohongshu feed |
Home feed recommendations (via Pinia store interception) |
opencli xiaohongshu notifications |
User notifications (mentions, likes, connections) |
opencli xiaohongshu user |
Get public notes from a user profile |
opencli xiaohongshu download |
Download images and videos from a note |
opencli xiaohongshu publish |
Publish image-text notes (creator center UI automation) |
opencli xiaohongshu creator-notes |
Creator's note list with per-note metrics |
opencli xiaohongshu creator-note-detail |
Detailed analytics for a single creator note |
opencli xiaohongshu creator-notes-summary |
Combined note list + detail analytics summary |
opencli xiaohongshu creator-profile |
Creator account info (followers, growth level) |
opencli xiaohongshu creator-stats |
Creator data overview (views, likes, collects, trends) |
Usage Examples
# Search for notes
opencli xiaohongshu search 美食 --limit 10
# Read a note's full content (pass URL from search results to preserve xsec_token)
opencli xiaohongshu note "https://www.xiaohongshu.com/search_result/<id>?xsec_token=..."
# Read comments with nested replies (楼中楼)
opencli xiaohongshu comments "https://www.xiaohongshu.com/search_result/<id>?xsec_token=..." --with-replies --limit 20
# JSON output
opencli xiaohongshu search 旅行 -f json
# Other commands
opencli xiaohongshu feed
opencli xiaohongshu notifications
opencli xiaohongshu download "https://www.xiaohongshu.com/search_result/<id>?xsec_token=..."
opencli xiaohongshu download "https://xhslink.com/..."
Note:
noteandcommentsnow require a full signed note URL withxsec_token.downloadaccepts either a signed note URL or anxhslinkshort link. Bare note IDs are no longer reliable on xiaohongshu.
Prerequisites
- Chrome running and logged into xiaohongshu.com
- Browser Bridge extension installed