← 返回 Skills 市场
xhs-comment-scraper
作者
liteli1987gmail
· GitHub ↗
· v1.0.0
· MIT-0
161
总下载
1
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install xhs-comment
功能描述
小红书评论爬虫。当用户在聊天中发送一个小红书博主主页链接时,自动抓取该博主所有笔记下的评论区数据,保存为本地JSON文件,并生成分析可视化报告。触发条件:用户发送的链接包含 xiaohongshu.com/user/profile 或类似博主主页链接。
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install xhs-comment - 安装完成后,直接呼叫该 Skill 的名称或使用
/xhs-comment触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
常见问题
xhs-comment-scraper 是什么?
小红书评论爬虫。当用户在聊天中发送一个小红书博主主页链接时,自动抓取该博主所有笔记下的评论区数据,保存为本地JSON文件,并生成分析可视化报告。触发条件:用户发送的链接包含 xiaohongshu.com/user/profile 或类似博主主页链接。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 161 次。
如何安装 xhs-comment-scraper?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install xhs-comment」即可一键安装,无需额外配置。
xhs-comment-scraper 是免费的吗?
是的,xhs-comment-scraper 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
xhs-comment-scraper 支持哪些平台?
xhs-comment-scraper 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 xhs-comment-scraper?
由 liteli1987gmail(@liteli1987gmail)开发并维护,当前版本 v1.0.0。
推荐 Skills