piekill

Xiaohongshu Search Summarizer

知識管理v1.0.3
作者:piekill更新於 2026-05-11共 4 個版本 · 最新版本釋出於 2026-03-10xiaohongshu-search-summarizer
#Summarize#小红书

據 AlphaMoat 統計,截至 2026-09,Xiaohongshu Search Summarizer 累計下載 4,717 次、獲 8 個星標,在全部 5,078 個 AI 技能中排名第 2,007 位,在「知識管理」分類(442 個)中排名第 191 位。

累計安裝
158
累計下載
4717
星標
8
全站排名
#2,007
全站前 40% · 「知識管理」前 44%
平台累計安裝累計下載星標評論
ClawHub ↗15847178-

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

可提取帖文文字、圖片和評論,再彙總成綜合報告;流程使用瀏覽器並把抓取內容和圖片儲存到本地。抓取內容不應直接視為可靠事實,重要結論需獨立核實,輸出檔案應放在指定目錄並審閱後再分享。 需要 playwright-cli、Python 與 requests。使用不含路徑分隔符號的簡單關鍵字與獨立目錄,所需登入應獲授權後由人員完成。實際檢視下載圖片後才能聲稱已做視覺分析,不假定所有貼文或登入驗證都可存取。max_posts 限 1–50。

資料釋出於 2026-10-27

可以用來做什麼

  • 收集某主題的帖子、圖片和評論
  • 彙總小紅書內容並整理研究報告

什麼時候用

  • 需要圍繞明確關鍵詞進行小紅書主題研究時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

為這個關鍵詞規劃小紅書內容研究流程,只輸出步驟,不訪問網頁。
說明如何審閱抓取的帖子和圖片並核實重要結論。

月度資料趨勢

累計下載4717
2886387048532026-03 · 累計下載 30222026-05 · 累計下載 38522026-06 · 累計下載 40552026-07 · 累計下載 44182026-08 · 累計下載 45922026-09 · 累計下載 471726-0326-09
星標8
7882026-03 · 星標 72026-05 · 星標 72026-06 · 星標 72026-07 · 星標 82026-08 · 星標 82026-09 · 星標 826-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-094717—8
2026-084592+3.9%8
2026-074418+9.0%8
2026-064055+5.3%7
2026-053852—7
2026-033022—7

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

5.5 KB · ClawHub v1.0.3
---
name: xiaohongshu-search-summarizer
description: Searches Xiaohongshu(小红书) for a given keyword, extracts the top N posts (including texts, images, and user comments), and then synthesizes a comprehensive final analytical report. Use this skill whenever the user wants to search Xiaohongshu for a specific topic, compile research seamlessly combining text and images, or needs an aggregated thematic summary of social media posts, comments, and visual data on a given subject.
compatibility: Requires playwright-cli and python3, and the Python 'requests' package installed.
---

# Xiaohongshu Search and Summarize

This skill automates the process of extracting high-quality multi-modal content (text + images) from Xiaohongshu (小红书) and actively assists you in generating a deeply integrated, analytical final report for the user. Due to Xiaohongshu's aggressive anti-scraping mechanisms, direct HTTP requests or naive scraping often result in 404s or blocks. This skill natively bypasses these by simulating a real user through the `playwright-cli` in a headed browser window.
展開全部(共 75 行)
It operates in two distinct phases:

### Phase 1: Subagent Data Collection
1. Simulate a search for the keyword on Xiaohongshu in a headed browser.
2. Advance through image sliders to fully load all lazy pictures from the top N posts.
3. Extract titles, descriptions, top comments, and all high-resolution images.
4. Download those images to a local directory and generate a raw data document (`[keyword]_raw_data.md`).

### Phase 2: AI Multi-Modal Synthesis (Your Job)
5. **You** MUST use your file reading capabilities to read the `[keyword]_raw_data.md` file.
6. Inside the raw data markdown, you will find paths to image files. **You MUST use your file reading / vision capabilities on these image file paths** to actually ingest and "see" their visual content. If you skip this step, you are only reading file names, not the images themselves!
7. **You** analyze the texts, summarize the genuinely useful comments (discarding noise like "pm me"), and interpret the semantic content of the images you just viewed (e.g. diagrams, guidelines, step-by-step UI flows).
8. **You** compile everything into a beautifully synthesized, single comprehensive report rather than just a linear list of posts. 

### Dependencies
- `playwright-cli` (Must be available on the path)
- `python3` (Required to download images and stitch the raw data markdown)
- `requests` Python package (`pip install requests`) — used by `parse.py` to download images

---

## Usage Instructions

### Step 1: Run the Extraction Script

Execute the wrapper script in `scripts/run.sh`. It accepts the following arguments:

```bash
/bin/bash <skill_dir>/scripts/run.sh "YOUR KEYWORD" <MAX_POSTS> <OUTPUT_DIRECTORY>
```

- **`YOUR KEYWORD`**: The search term to look up on Xiaohongshu.
- **`<MAX_POSTS>`**: (Optional, default = 10) The number of top posts to scan.
- **`<OUTPUT_DIRECTORY>`**: (Optional, default = `./`) Directory where the raw data and images will be saved.

**Example execution**:

```bash
/bin/bash ~/.claude/skills/xiaohongshu-search-summarizer/scripts/run.sh "openclaw使用场景" 10 "./xhs_report_openclaw_scenarios"
```

### Step 2: Read Raw Data & Images

Once the bash script finishes successfully, navigate to the `OUTPUT_DIRECTORY` and use your file reading capabilities to ingest the generated `[keyword]_raw_data.md` file.

Inside this file, you will find descriptions, comments, and file paths pointing to `post_X_img_Y.webp` or `post_X_img_Y.jpg`. 

### Step 3: Synthesis & Summarization

**This is the most critical step.** Do not just return the raw markdown file to the user. Instead, write a polished comprehensive markdown report that reorganizes the information logically, while retaining a high level of detail.

Follow these strict compilation rules:
- **Do not list posts individually** (e.g. avoid "Post 1: ... Post 2: ...").  
- **Read the Images:** You MUST use your file reading and vision capabilities on the `.webp` or `.jpg` image files found in the raw data directory to interpret their contents.
- **Detailed & Comprehensive Synthesis:** Provide a highly detailed summary that includes diverse viewpoints, nuances, and specific examples found across different posts. Avoid over-summarizing or losing important context; preserve the richness and diversity of the information.
- **Extract and merge themes:** Group ideas by concepts, steps, recurring themes, or pros/cons.  
- **Evaluate comments:** Merge insights from valuable comments directly into the core narrative. Skip useless or repetitive comments, but preserve diverse opinions or helpful counter-arguments from the comments section.
- **Integrate images contextually:** Embed the most relevant and high-quality images directly into the flow of your final report to support the analytical points being made. Describe their visual meaning based on what you saw with your vision capabilities.
- **Save to OUTPUT_DIRECTORY:** Save your beautifully compiled final Markdown report using your file writing capabilities directly into the same `<OUTPUT_DIRECTORY>` as the raw data (e.g., `<OUTPUT_DIRECTORY>/[keyword]_synthesis.md`), and give the user the path to it. 

### Error Handling

If you encounter `404 Not Found` or "element not visible" errors during the browser invocation:
- Keep in mind that Xiaohongshu may demand a login challenge. If the site pauses waiting for a login, instruct the user to verify the `playwright-cli` browser window and perform necessary authentication manually, then try the script again.

「知識管理」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。