ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified social Safety 3/5

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.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/chocomintx/xiaohongshutools
Or

What 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

  1. Market Intelligence: Aggregating trending content across specific niches (e.g., skincare, fashion, or lifestyle trends) to analyze consumer sentiment and popular keywords.
  2. Competitive Benchmarking: Fetching user profiles and content engagement metrics to track performance of top-tier creators.
  3. Content Aggregation: Automatically collecting high-quality visual and text data from post feeds for research, design inspiration, or database population.
  4. Engagement Automation: Scaling interactions such as following target creators or liking relevant content based on automated search triggers.

Example Prompts

  1. "Search for the latest trending posts about 'minimalist interior design' on Xiaohongshu and save the top 5 note IDs."
  2. "Get the detailed profile info and follower count for the user with ID '642a8b9c000000000702d5f8' and follow them."
  3. "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_session cookie.
  • 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

Stars3683
Views0
Updated2026-04-01
View Author Profile
AI Skill Finder

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 skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-chocomintx-xiaohongshutools": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#xiaohongshu#scraping#automation#social-media#data-collection
Safety Score: 3/5

Flags: network-access, data-collection, external-api