← Back to Skills Marketplace
WeChat Article Collector
by
adchina2025
· GitHub ↗
· v1.0.2
· MIT-0
94
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install wechat-article-collector
Description
微信公众号文章批量采集工具。通过 Browser Harness 连接用户已登录的微信公众号后台,自动提取文章列表、去重、下载全文并保存到本地知识库。适用于个人公众号内容备份、知识库构建、文章管理等场景。
Usage Guidance
要点和建议:
- 核实 browser-harness 的来源与信誉(文档中给出的是 https://github.com/browser-use/browser-harness);在信任该仓库之前不要运行安装脚本或将其作为守护进程。
- 注意:该 skill 通过 Browser Harness 与您本地已登录的 Chrome 会话交互,能读取页面内容并保存到本地,等于可以访问您在浏览器中已登录的账户数据。仅在您同意并信任运行环境(或使用非关键账号)时使用。
- 元数据遗漏:registry 条目没有列出 browser-harness 作为必需二进制,这是不一致,表明发布信息可能不完整或仓库维护不够严谨。询问发布者或查看最新版 README/提交历史以确认。
- 如果关心数据外泄风险:在受控环境(虚拟机或仅含备份/测试账号的浏览器配置)中先运行 test_install.py 和一次手动采集,检查脚本行为和产生的文件。
- 对合规/法律方面:确认采集公众号内容是否符合平台/公众号所有者的使用条款与版权政策。
- 代码质量提示:脚本中有拼接与动态执行 JS 的逻辑(通过 browser-harness/UNIX socket),虽然当前代码仅把内容写到本地,但这类路径若被修改可能用于更广泛的数据访问或网络转发——优先在沙箱中审计再用在敏感账号上。
Capability Analysis
Type: OpenClaw Skill
Name: wechat-article-collector
Version: 1.0.2
The skill provides browser automation for article collection but contains significant security vulnerabilities. Specifically, `scripts/collect_articles.py` and `scripts/utils.py` are susceptible to Python and shell injection because they construct command strings using unsanitized input (such as URLs and CSS selectors) and execute them via `subprocess.run(shell=True)` or by piping to the `browser-harness` utility. While the tool's stated purpose of backing up WeChat articles appears legitimate, these flaws could allow for arbitrary code execution if the configuration or target URLs are manipulated. Additionally, the skill requires access to authenticated browser sessions, which is a high-risk capability.
Capability Assessment
Purpose & Capability
技能声明为“微信公众号文章采集器”,实际运行指令和代码确实实现浏览器自动化并访问公众号后台,这与目的相符. 但 registry 元数据列出的“必需二进制 / 环境变量”为空,而 SKILL.md 与脚本明确依赖外部工具 browser-harness(命令名 browser-harness、需在 PATH 中、并要求安装到 ~/.openclaw/workspace/browser-harness)。元数据未声明该必需项,存在不一致。
Instruction Scope
SKILL.md 和脚本限定了行为:使用 Browser Harness 连接本地已登录的 Chrome,导航到公众号后台、提取列表、去重、保存 Markdown。指令没有把数据发送到远端服务器或第三方 API,所有 I/O 都是本地文件系统和本地 browser-harness 通信。但注意脚本会驱动已登录的浏览器,会读取页面内任意内容(通过注入并执行 JavaScript),这本身具有高权限——如果 browser-harness 或本 skill 被篡改,可能访问任意登录会话数据。
Install Mechanism
该 skill 无 install spec(为说明性 skill),但文档要求用户从 GitHub 克隆并运行 uv tool install -e . 来安装 Browser Harness(外部依赖)。这意味着安装阶段需要从外部网络拉取代码并在本地执行安装步骤;风险取决于 browser-harness 的来源和值得信任程度。skill 本身不通过远程 URL 下载并执行额外二进制,但依赖第三方工具的安装步骤存在典型供应链/信任风险。
Credentials
metadata 未列出任何环境变量或凭据(good),脚本也未读取外部 API 密钥等。但功能上需要本地 Chrome 已登录的公众号账号(即利用浏览器的登录态)。因此技能不请求显式密钥,但依赖并访问用户的浏览器会话;对于采集公众号这是合理需求,但等同于拥有访问该账户已登录会话的能力,用户应评估是否在受限或非生产账户上运行。
Persistence & Privilege
技能没有设置 always: true,也未修改其他 skills 配置或系统范围设置。唯一的长期影响是用户可能为定时任务(cron)配置该脚本,但这是用户显式操作。
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install wechat-article-collector - After installation, invoke the skill by name or use
/wechat-article-collector - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
- 增加 Browser Harness 必需依赖的详细安装说明与项目地址,方便新用户快速配置环境。
- 明确标注 Browser Harness 作为本工具关键依赖,并补充安装方法命令行示例。
- 其他功能和用法无变化。
Security fixes: Use subprocess without shell=True, tempfile for scripts, declare browser-harness dependency explicitly
v1.0.1
- 文档新增“扩展应用场景”章节,展示该工具基于 Browser Harness 可应用于内容采集、自动化操作、监控告警和数据导出等更多领域。
- 增加“如何扩展”及“快速扩展示例”说明,指导用户配置选择器、扩展脚本和定制采集目标。
- 其他已有文档结构、功能说明和使用说明维持不变。
v1.0.0
wechat-article-collector 1.0.0
- Initial release of a WeChat official account article batch collector tool.
- Supports automatic extraction, de-duplication, and full-text download of articles from logged-in WeChat Official Account backends via Browser Harness.
- Saves articles locally in Markdown format, organized by account.
- Includes scripts for one-click collection and step-by-step execution.
- Configurable save directory, crawl interval, and supports multi-account operation.
- Includes troubleshooting tips and advanced usage examples.
Metadata
Frequently Asked Questions
What is WeChat Article Collector?
微信公众号文章批量采集工具。通过 Browser Harness 连接用户已登录的微信公众号后台,自动提取文章列表、去重、下载全文并保存到本地知识库。适用于个人公众号内容备份、知识库构建、文章管理等场景。 It is an AI Agent Skill for Claude Code / OpenClaw, with 94 downloads so far.
How do I install WeChat Article Collector?
Run "/install wechat-article-collector" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is WeChat Article Collector free?
Yes, WeChat Article Collector is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does WeChat Article Collector support?
WeChat Article Collector is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created WeChat Article Collector?
It is built and maintained by adchina2025 (@adchina2025); the current version is v1.0.2.
More Skills