According to AlphaMoat, as of 2026-10, 小红书 has 8,282 downloads and 13 stars — ranked by downloads #3,362 among 10,914 AI skills in this ranking, and #271 of 873 in Business Ops.
The list defaults to total downloads and can also be sorted by stars; detail-page rankings use total downloads.
| Platform | Downloads | Stars | Comments |
|---|---|---|---|
| ClawHub ↗ | 8.3K | 13 | - |
Platforms count differently and update at different times.
Uses Python to search posts and read the home feed, user information and comments, with follow and like APIs. Search may fail without login and require web_session; details and comments require note_id and xsec_token. The configuration section allows no proxy, but request frequency, login state and platform controls affect access. Share short links usually cannot be obtained through these APIs alone.
Profile published 2026-10-26
Generated from the skill’s documentation as examples; not results of actual runs.
Compiled from what the skill’s documentation declares; not verified by installing or running it.
The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.
| Month | Downloads | MoM | Stars |
|---|---|---|---|
| 2026-10 | 8.3K | — | 13 |
| 2026-09 | 8.0K | — | 13 |
| 2026-08 | 7.8K | +4.2% | 13 |
| 2026-07 | 7.5K | — | 13 |
| 2026-05 | 6.6K | — | 11 |
| 2026-03 | 5.0K | — | 11 |
The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.
--- name: xiaohongshu description: "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." --- # Xiaohongshu Skill 小红书(XiaoHongShu / Little Red Book)数据采集和交互工具包。基于RedCrack纯Python逆向工程实现。 ## Quick Start
### Installation
Dependencies are already installed:
```bash
pip install aiohttp loguru pycryptodome getuseragent
```
### Basic Usage
```python
import asyncio
import sys
sys.path.insert(0, r'C:\\Users\\Chocomint\\.openclaw\\workspace\\xiaohongshu\\scripts')
from request.web.xhs_session import create_xhs_session
async def main():
# ✅ 推荐:不强制代理(有代理再填 proxy)
# 说明:当前小红书接口经常对“未登录/游客”限制搜索能力。
# 如果 search 报 code=-104(未登录无权限),请提供 web_session。
xhs = await create_xhs_session(proxy=None, web_session="YOUR_WEB_SESSION_OR_NONE")
# Search notes
res = await xhs.apis.note.search_notes("美妆")
data = await res.json()
print(data)
await xhs.close_session()
asyncio.run(main())
```
## Core Capabilities
### 1. Search & Discovery
**Search notes by keyword:**
```python
res = await xhs_session.apis.note.search_notes("口红")
```
**Get home feed (trending):**
```python
# 注意:get_homefeed 需要 category 参数
res = await xhs_session.apis.note.get_homefeed(
xhs_session.apis.note.homefeed_category_enum.FOOD
)
```
**Get note detail:**
```python
# note_detail 需要 note_id + xsec_token(有时在搜索结果 item 里叫 xsec_token)
res = await xhs_session.apis.note.note_detail(note_id, xsec_token)
```
### 2. User Interactions
**Get user info:**
```python
res = await xhs_session.apis.auth.get_self_simple_info()
```
**Follow a user:**
```python
res = await xhs_session.apis.user.follow_user(user_id)
```
**Like a note:**
```python
res = await xhs_session.apis.note.like_note(note_id)
```
### 3. Comments
**Get comments for a note:**
```python
# comments 也需要 note_id + xsec_token
res = await xhs_session.apis.comments.get_comments(note_id, xsec_token)
```
## Configuration
### Proxy
代理不是硬性要求(本技能可以 `proxy=None` 运行)。但在以下情况建议使用代理:
- 网络环境不稳定/请求超时
- 频繁触发风控(例如 461)想换出口 IP 试试
**不使用代理:**
```python
xhs = await create_xhs_session(proxy=None, web_session=None)
```
**使用代理:**
```python
xhs = await create_xhs_session(
proxy="http://127.0.0.1:7890",
web_session="your_web_session_cookie" # 需要登录能力时再提供
)
```
### Encryption Parameters
All encryption parameters are automatically generated:
- **Cookies**: a1, webId, acw_tc, web_session, sec_poison_id, websectiga, gid
- **Headers**: x-s, x-s-common, x-t, x-b3-traceid, x-xray-traceid
Configuration file: `scripts/request/web/encrypt/web_encrypt_config.ini`
## Session Management
### Guest Mode (No Login)
```python
xhs_session = await create_xhs_session(proxy="http://127.0.0.1:7890")
```
### Authenticated Mode (With Login)
```python
xhs_session = await create_xhs_session(
proxy="http://127.0.0.1:7890",
web_session="030037afxxxxxxxxxxxxxxxxxxxaeb59d5b4" # Your cookie
)
```
### Close Session
```python
await xhs_session.close_session()
```
## Links & IDs (重要)
- 小红书笔记的公开标识通常是 **note_id(十六进制风格字符串)**,例如:`697cc945000000000a02cdad`。
- 这个 note_id **可以做数学意义的 16 进制→10 进制转换**,但那只是“另一种表示法”,**不会变成小红书的短数字 ID(类似 App Store 的 id741292507)**,也不会更适合拼接小红书链接。
- 我们通过接口得到的可直接打开的网页链接通常形如:
- `https://www.xiaohongshu.com/explore/<note_id>?xsec_token=...&xsec_source=pc_search`
- **xhslink.com 短链**一般需要在 App/登录态里通过“分享→复制链接”获得;仅靠当前接口通常拿不到。
### 输出到聊天时的链接美化(推荐)
为了避免长链接难看,优先用**文本标签超链接**:
- Markdown:`[标题](https://www.xiaohongshu.com/explore/...)`
---
## Available APIs
All APIs are accessible via `xhs_session.apis.*`:
**Authentication (`apis.auth`):**
- `get_self_simple_info()` - Get current user info
**Notes (`apis.note`):**
- `search_notes(keyword)` - Search notes by keyword
- `get_homefeed(category)` - Get home feed
- `note_detail(note_id, share_token)` - Get note details
- `like_note(note_id)` - Like a note
**Comments (`apis.comments`):**
- `get_comments(note_id, share_token)` - Get note comments
**User (`apis.user`):**
- `follow_user(user_id)` - Follow a user
- `get_user_info(user_id)` - Get user details
## Example Workflows
### Workflow 1: Search and Extract Notes
```python
async def search_example():
xhs_session = await create_xhs_session(proxy="http://127.0.0.1:7890")
# Search for makeup tutorials
res = await xhs_session.apis.note.search_notes("美妆教程")
data = await res.json()
for note in data['data']['items']:
print(f"Title: {note['display_title']}")
print(f"Author: {note['user']['nickname']}")
print(f"Likes: {note['liked_count']}")
print("---")
await xhs_session.close_session()
```
### Workflow 2: Get Comments for Analysis
```python
async def comments_example():
xhs_session = await create_xhs_session(proxy="http://127.0.0.1:7890")
note_id = "64f1a2d30000000013003689"
res = await xhs_session.apis.comments.get_comments(note_id, "")
data = await res.json()
for comment in data['data']['comments']:
print(f"User: {comment['user']['nickname']}")
print(f"Content: {comment['content']}")
print(f"Likes: {comment['like_count']}")
print("---")
await xhs_session.close_session()
```
### Workflow 3: User Profile Analysis
```python
async def profile_example():
xhs_session = await create_xhs_session(
proxy="http://127.0.0.1:7890",
web_session="your_cookie_here"
)
# Get self info
res = await xhs_session.apis.auth.get_self_simple_info()
data = await res.json()
print(f"Username: {data['data']['user']['nickname']}")
print(f"Followers: {data['data']['user']['follows']}")
print(f"Fans: {data['data']['user']['fans']}")
await xhs_session.close_session()
```
## Important Notes
1. **Proxy is required** for most operations due to XiaoHongShu's anti-scraping measures
2. **Rate limiting**: Be respectful with request frequency to avoid IP bans
3. **Authentication**: Some operations require login (web_session cookie)
4. **Legal compliance**: Use only for legitimate research and data analysis purposes
## Technical Details
Based on [RedCrack](https://github.com/Cialle/RedCrack) - Pure Python reverse engineering of XiaoHongShu's encryption algorithms.
**What's automatically handled:**
- Base64/Base58 custom encoding
- RC4/XOR encryption
- MD5/SHA256 hashing
- Custom signature generation (x-s, x-s-common)
- Dynamic cookie generation (a1, webId, sec_poison_id, etc.)
**No JavaScript runtime required** - All encryption is pure Python.
## Troubleshooting
### Connection errors
- Verify your proxy is running on the configured port
- Try different proxy servers if needed
- Check network connectivity
### 461 errors(风控/安全校验)
- 这通常不是代码语法问题,而是触发了小红书的风控/安全校验。
- 典型现象:`OtherStatusError: 461异常`,或者接口返回看似 success=true 但 HTTP=461。
应对建议:
- 降低频率/加随机 sleep、避免并发
- 换关键词/换 endpoint(例如先用搜索拿到 note_id + xsec_token,再查 detail)
- 使用稳定的登录态(web_session)
- 必要时更换代理出口
### 401/403 errors
- web_session 可能过期
- 小红书可能更新了风控参数/签名逻辑(需要更新逆向实现)
### Import errors
- Ensure all dependencies are installed: `pip install aiohttp loguru pycryptodome getuseragent`
- Check that the skill path is correct in `sys.path.insert()`
百炼®标书是一个面向投标场景标书写作的skill,可以帮用户完成四件事:解读招标文件、生成投标文件、审查投标文件合规风险以及标书查重。它适合用自然语言直接写作,用户只要提供文件和需求,就能拿到解读结果、成品标书、审查报告、查重报告。百炼®标书官网:https://biaoshu.zhiliaobiaoxun.com
AdMapix广告原始数据层,广告创意/应用/排名/下载收入
知了标讯: Searches and analyzes tender, award, supplier, and procurement-market information.
Search and analyze tender and award information through the Zhiliaobiaoxun API.
喜鹊标书审查|让投标风险看得见、查得清、改得准 投标文件准备好了,还有哪些遗漏和隐患?喜鹊标书审查对照招标要求,检查投标文件中的响应缺漏、内容矛盾和潜在风险,帮助您在提交前发现问题、明确修改重点。 - 问题一目了然:区分已确认风险与待核实事项,清晰呈现问题位置、具体表现及潜在影响。 - 审查有据可查:关联招标条款与投标内容,让您看清“要求是什么、哪里存在问题、判断依据是什么”。 - 原文快速定位:结合页码、检索线索和证据截图,减少来回翻找,方便逐项核对。 - 完整报告可交付:提供 Word 审查报告及审查版 PDF,便于团队复核、修改和留档。 支持 PDF、DOCX 及多附件审查。先检查文件,再展示价格并按次付费;支持随时查询进度、继续已付款任务和补领报告,让每一次审查都有清晰结果。 https://www.xiquebiaoshu.com/?source=skillhub](https://www.xiquebiaoshu.com/?source=bid-review-pay
A skill that gives an AI agent a phone number and runs phone tasks for it.
将真实产品照片制作成影棚级电商主图、场景图或面向市场平台的高清商品图。这款 AI 商品图工作室用于商品图片处理和电商图片编辑,可替换背景、改善光效、搭建场景。它以原图中的商品外观特征为依据,从一张手机随拍就能做出白底主图、生活场景图和高级广告图。适用于亚马逊白底产品图、淘宝主图、Shopify 产品大图和社交媒体商品图。从一张产品照片出发,组合多张参考图,或在选定草稿上做定向精修,完成适合上架使用的成品;生活场景图和广告图也能直接用作商品详情页图片。
【零一数科·出品】会员体系搭建(免费版)。为私域用户设计会员体系搭建,产出会员等级成长表、积分获取消耗规则表、权益配置矩阵、积分财务测算表四件套。适用于会员积分体系设计、会员等级阶梯、成长值规则、权益配置、积分获取与消耗、积分财务测算、私域会员运营。
Data as of 2026-10. Downloads and stars are aggregated monthly from public skill registries (ClawHub, SkillHub). See data methodology.