xhs-cli - Xiaohongshu CLI tool for browsing, interacting, and posting
A headless-browser CLI tool for Xiaohongshu to search notes, read posts, browse profiles, like, favorite, comment, and publish from the terminal.
Tags
Updated: 2026-09-13Typical Inputs
What this skill does
- Search notes
- Read note details
- Browse user profiles
- View followers and following
- Explore feeds and topics
- Like and favorite notes
- Comment on notes
- Delete published notes
- List account favorites
- Publish new notes
- Manage login session
Inputs
- Xiaohongshu account cookies
- Search keywords
- Note IDs
- User IDs
- Topic queries
- Comment content
- Note titles and text
- Image files
Outputs
- Search results table or JSON
- Note text and comments
- User profile and post lists
- Follower and following lists
- Recommended feed data
- Topic search results
- Favorites list
- Account authentication status
- Interaction and post status changes
Requirements
- Python 3.8 or higher
- xhs-cli package
- Valid Xiaohongshu cookies
- Local Chrome browser
