xiaohongshu
XiaoHongShu (Little Red Book) data collection and interaction toolkit. Use when working with XiaoHongShu (小红书) platform for: (1) Searching and scraping notes/posts, (2) Getting user profiles and details, (3) Extracting comments and likes, (4) Following users and liking posts, (5) Fetching home feed and trending content. Automatically handles all encryption parameters (cookies, headers) including a1, webId, x-s, x-s-common, x-t, sec_poison_id, websectiga, gid, x-b3-traceid, x-xray-traceid. Supports guest mode and authenticated sessions via web_session cookie.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/chocomintx/xiaohongshutoolsWhat This Skill Does
The Xiaohongshu (Little Red Book) toolkit is a robust automation and data extraction skill designed for interacting with the XHS ecosystem. It leverages advanced reverse engineering to manage complex platform-specific security parameters (like x-s, x-t, and trace IDs) automatically. This allows developers and analysts to programmatically search for trending topics, extract detailed post content, retrieve user metadata, and perform social actions like following accounts or liking posts, all without manual browser intervention.
Installation
To integrate this skill into your environment, use the OpenClaw hub command:
clawhub install openclaw/skills/skills/chocomintx/xiaohongshutools
Ensure your environment has the core dependencies installed:
pip install aiohttp loguru pycryptodome getuseragent
Use Cases
- Market Intelligence: Aggregating trending content across specific niches (e.g., skincare, fashion, or lifestyle trends) to analyze consumer sentiment and popular keywords.
- Competitive Benchmarking: Fetching user profiles and content engagement metrics to track performance of top-tier creators.
- Content Aggregation: Automatically collecting high-quality visual and text data from post feeds for research, design inspiration, or database population.
- Engagement Automation: Scaling interactions such as following target creators or liking relevant content based on automated search triggers.
Example Prompts
- "Search for the latest trending posts about 'minimalist interior design' on Xiaohongshu and save the top 5 note IDs."
- "Get the detailed profile info and follower count for the user with ID '642a8b9c000000000702d5f8' and follow them."
- "Fetch all comments from the Xiaohongshu post with ID '65a123bc0000000012034567' using my authenticated session."
Tips & Limitations
- Login vs. Guest Mode: Many advanced search functionalities are restricted for anonymous users. If you receive a -104 error code, ensure you provide a valid
web_sessioncookie. - Rate Limiting: Be cautious with the frequency of your requests. Excessive automated activity can lead to IP bans or temporary session blocks by the Xiaohongshu anti-scraping system.
- Proxies: If you experience high failure rates, rotate your IP using a proxy provider. The skill supports custom proxy integration via the initial session setup.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-chocomintx-xiaohongshutools": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, data-collection, external-api