Xpersona
X

Xiaohongshu Browser

CLAWHUB · Unverified

Browse Xiaohongshu (小红书) and take screenshots of posts. Supports keyword search, post modal screenshots, and returns post links. Requires prior manual login. Skill: Xiaohongshu Browser Owner: besty0121 Summary: Browse Xiaohongshu (小红书) and take screenshots of posts. Supports keyword search, post modal screenshots, and returns post links. Requires prior manual login. Tags: latest:1.2.1, scraping:1.2.1, screenshot:1.2.1, social-media:1.0.0, xiaohongshu:1.2.1 Version history: v1.2.1 | 2026-04-03T01:59:40.093Z | user 修复IP风控问题,增加重试机制和随机延时 v1.2.0 | 2026-04-02T00:44:04.445Z | au

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s174yh6zn30ahdy1cgjzj31bes841kse:xiaohongshu-browser
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-besty0121-xiaohongshu-browser/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

13,727 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: xiaohongshu-browser
description: Browse Xiaohongshu (小红书) and take screenshots of posts. Supports keyword search, post modal screenshots, and returns post links. Requires prior manual login.
tags:
  - xiaohongshu
  - social-media
  - scraping
  - screenshot
requires:
  bins:
    - python
  env: []
---

# Xiaohongshu Browser / 小红书浏览器

用 Playwright 自动化浏览小红书,搜索关键词并截图帖子弹窗预览。

Automate Xiaohongshu browsing — search keywords and screenshot post modal previews.

## 前置要求 / Prerequisites

**Python 3.x** + **Playwright**:

```bash
pip install playwright
playwright install chromium
```

## 使用步骤

### 第一步:首次登录(只需要做一次)

1. 运行登录脚本,会弹出浏览器窗口:

```bash
python <skill_dir>/scripts/xhs_open.py
```

2. 在弹出的浏览器里**手动登录小红书**(扫码或账号密码都行)

3. 登录成功后,创建一个控制文件来保存登录状态:

```bash
# Windows (PowerShell):
Set-Content "$env:USERPROFILE\.openclaw\.close_browser" "CLOSE"

# Windows (CMD):
echo CLOSE > %USERPROFILE%\.openclaw\.close_browser

# Linux / macOS:
echo CLOSE > ~/.openclaw/.close_browser
```

4. 看到终端输出 `AUTH_SAVED` 就说明登录状态保存好了

> 💡 登录状态保存在 `~/.openclaw/xhs_data`,以后搜索时会自动使用,不需要重复登录。

### 第二步:搜索并截图

```bash
python <skill_dir>/scripts/xhs_search.py "关键词" 数量
```

**参数说明:**
- 第一个参数:搜索关键词(默认:`御姐`)
- 第二个参数:截图几个帖子(默认:`5`)

**示例:**

```bash
# 搜索"美食",截图前3个帖子
python <skill_dir>/scripts/xhs_search.py "美食" 3

# 搜索"穿搭",截图前10个
python <skill_dir>/scripts/xhs_search.py "穿搭" 10

# 不传参数,用默认值
python <skill_dir>/scripts/xhs_search.py
```

### 输出结果

截图保存在 `<skill_dir>/output/` 目录,文件名格式:`post_序号_时间戳.png`

每张截图包含帖子弹窗预览(图文详情)。

## 常见问题

### 需要重新登录?

小红书的登录会过期,如果搜索时遇到登录弹窗,需要重新登录:

```bash
# 1. 删除旧的登录数据
# Windows:
Remove-Item -Recurse -Force "$env:USERPROFILE\.openclaw\xhs_data"
# Linux / macOS:
rm -rf ~/.openclaw/xhs_data

# 2. 重新运行登录脚本
python <skill_dir>/scripts/xhs_open.py
```

### 搜索没结果?

- 小红书可能会限制频繁访问,等几分钟再试
- 关键词不要太长,2-6个字最佳
- 不要带 `#` 号,直接搜关键词

## 目录结构

```
xiaohongshu-browser/
├── SKILL.md              # 本说明文件
├── scripts/
│   ├── xhs_open.py       # 登录脚本(首次使用)
│   └── xhs_search.py     # 搜索+截图脚本
└── output/               # 截图输出目录
```

## 注意事项

- 使用无头浏览器(headless),不会弹出窗口
- 操作间有随机延迟,降低被检测风险
- 频繁使用可能触发小红书的反爬机制
- 帖子链接需要 `xsec_token` 才能直接访问(搜索结果中已包含)

_meta.json

{
  "ownerId": "kn782s7mb59fzr7b3y2sqz7vc9840rfc",
  "slug": "xiaohongshu-browser",
  "version": "1.2.1",
  "publishedAt": 1775181580093
}

skill-card.md

## Description:

Browse Xiaohongshu (小红书) and take screenshots of posts. Supports keyword search, post modal screenshots, and returns post links. Requires prior manual login.

This skill is ready for commercial/non-commercial use.

## Publisher:

[besty0121](https://clawhub.ai/user/besty0121)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agents use this skill to automate Xiaohongshu keyword searches, capture post preview screenshots, and return post links after a user completes manual login.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Reusable Xiaohongshu login state is saved locally, including ~/.openclaw/xhs_data and ~/.openclaw/xhs_auth.json.

Mitigation: Protect those paths like credentials, avoid shared machines and synced backup folders, and delete both paths when clearing the session.

Risk: Automated browsing may trigger Xiaohongshu rate limits or IP risk controls during repeated searches.

Mitigation: Use conservative search volumes, allow delays between runs, and stop when the service reports IP risk or login challenges.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/besty0121/skills/xiaohongshu-browser)
- [Xiaohongshu website](https://www.xiaohongshu.com)

## Skill Output:

**Output Type(s):** [text, JSON, files, shell commands, configuration]

**Output Format:** [Console text with JSON results and PNG screenshot files]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires prior manual login; search takes a keyword and optional screenshot count.]

## Skill Version(s):

1.2.1 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Xiaohongshu Browser and adjacent AI workflows.