Loading...
Loading...
Xiaohongshu (XHS) CLI Tool. Search notes, view details and comments, get user information, account data statistics, and automatically publish images and texts. Use this Skill when users mention Xiaohongshu, XHS, Hongshu, note search, or posting.
npx skill4agent add 0xranx/agent-kit xhs-clipip install -r requirements.txt && playwright install chromiumpython xhs.py loginpython skills/xhs-cli/xhs.py mepython skills/xhs-cli/xhs.py search "keywords"
python skills/xhs-cli/xhs.py search "keywords" --sort time # Sort by time
python skills/xhs-cli/xhs.py search "keywords" --type video # Search only videospython skills/xhs-cli/xhs.py detail <note_id> <xsec_token> # Note details
python skills/xhs-cli/xhs.py comments <note_id> <xsec_token> # Comment list
python skills/xhs-cli/xhs.py note <note_id> <xsec_token> # Details + commentspython skills/xhs-cli/xhs.py me # Currently logged-in user
python skills/xhs-cli/xhs.py user <user_id> # View user homepage
python skills/xhs-cli/xhs.py unread # Unread notificationspython skills/xhs-cli/xhs.py stats # Overview of all post data
python skills/xhs-cli/xhs.py stats --detail # Include details of each postaccount_namesearch_keywordpython skills/xhs-cli/xhs_publish.py login # Creator Center login
python skills/xhs-cli/xhs_publish.py publish --draft draft.md --images a.jpg b.jpg # Publish
python skills/xhs-cli/xhs_publish.py publish --draft draft.md --images a.jpg --auto # Skip confirmation## Title
Post title
## Body
Body content...
## Hashtags
#tag1 #tag2 #tag3search "XX"note <id> <token>stats --detailuser <user_id>commentslogindata/xhs_cookie.txtxsec_tokenxhs_publish.py login