← Back to Skills Marketplace
xhs-comment-scraper
by
liteli1987gmail
· GitHub ↗
· v1.0.0
· MIT-0
161
Downloads
1
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install xhs-comment
Description
小红书评论爬虫。当用户在聊天中发送一个小红书博主主页链接时,自动抓取该博主所有笔记下的评论区数据,保存为本地JSON文件,并生成分析可视化报告。触发条件:用户发送的链接包含 xiaohongshu.com/user/profile 或类似博主主页链接。
Usage Guidance
This skill appears to do what it claims, but before installing consider: (1) It will open a local Chrome window and ask you to scan a Xiaohongshu QR code — doing so gives that browser session access to your account, so only log in if you consent. (2) The skill writes JSON and report files to your Downloads folders and may take screenshots for debugging — review those files after a run. (3) It requires the agent's browser and exec tools (to control Chrome and run Python); grant those capabilities only if you trust the skill. (4) Scraping may trigger captchas or violate Xiaohongshu's terms of service—use responsibly. If you want more assurance, inspect the included scripts (save_comments.py) yourself and run the skill on a throwaway or non-sensitive machine/account first.
Capability Analysis
Type: OpenClaw Skill
Name: xhs-comment
Version: 1.0.0
The xhs-comment-scraper skill is a specialized tool for extracting Xiaohongshu (XHS) comments and saving them locally. It utilizes the browser tool for data extraction and a Python script (save_comments.py) to store results in the user's Downloads folder. The SKILL.md instructions provide detailed guidance for the AI agent on handling dynamic Vue rendering, manual captcha resolution, and PowerShell syntax quirks, all of which are consistent with the stated purpose of creating a reliable scraper without any evidence of malicious intent or data exfiltration.
Capability Assessment
Purpose & Capability
Name/description (scrape Xiaohongshu comments, save JSON, generate report) match the provided instructions and the single Python helper. The skill asks for browser and exec capabilities in docs (to open Chrome and run Python) which is consistent with the stated functionality. No unrelated cloud credentials, services, or binaries are required.
Instruction Scope
Runtime instructions instruct the agent to open a local Chrome profile (profile="openclaw"), navigate the Xiaohongshu site, click to expand replies, extract document.body.innerText, and save files under the user's Downloads folder. This is within scope for a scraper but does involve reading full page text and taking screenshots (debugging). The docs require the user to scan a QR to log in—this gives the browser session access to the user's Xiaohongshu account and should be done knowingly. There is a minor internal inconsistency: the guidance says DOM selectors 'all invalid' for comments yet still uses querySelectorAll in places (acceptable for collecting note links but worth noting).
Install Mechanism
No install spec; instruction-only plus one small Python script (save_comments.py). Nothing is downloaded from arbitrary URLs or extracted to disk by the skill itself. This is low-risk from an install mechanism perspective.
Credentials
The skill declares no environment variables, credentials, or external tokens. It does require local browser and exec permissions (documented). It reads/writes files under the user's Downloads folder and references a local font path (C:\Windows\Fonts\STSONG.TTF) for plotting—these file accesses are proportional to generating reports and are explained in the docs.
Persistence & Privilege
always:false and disable-model-invocation:false (default autonomous invocation allowed). The skill does not request permanent system presence, nor does it modify other skills or system-wide configuration. It writes files only to user-downloads paths under its own scope.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install xhs-comment - After installation, invoke the skill by name or use
/xhs-comment - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of xhs-comment-scraper for scraping all comment data from a Xiaohongshu blogger's notes.
- Automatically detects Xiaohongshu user profile links in chat to trigger scraping.
- Saves each note’s comments as structured JSON files in the local Downloads folder.
- Generates optional visual analysis reports (word cloud, comment stats) using Python and Chinese font support.
- Includes detailed workflow, error handling, and key troubleshooting tips specific to Xiaohongshu DOM and browser automation.
- Requires user login via independent Chrome session ("openclaw" profile) and guides users through common pitfalls.
Metadata
Frequently Asked Questions
What is xhs-comment-scraper?
小红书评论爬虫。当用户在聊天中发送一个小红书博主主页链接时,自动抓取该博主所有笔记下的评论区数据,保存为本地JSON文件,并生成分析可视化报告。触发条件:用户发送的链接包含 xiaohongshu.com/user/profile 或类似博主主页链接。 It is an AI Agent Skill for Claude Code / OpenClaw, with 161 downloads so far.
How do I install xhs-comment-scraper?
Run "/install xhs-comment" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is xhs-comment-scraper free?
Yes, xhs-comment-scraper is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does xhs-comment-scraper support?
xhs-comment-scraper is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created xhs-comment-scraper?
It is built and maintained by liteli1987gmail (@liteli1987gmail); the current version is v1.0.0.
More Skills