微信文章抓取器 - 安全版
CLAWHUB · Unverified
使用 Puppeteer + Chrome 无头模式抓取微信公众号文章,支持移动端伪装,提取全文及元信息并自动保存文本。 Skill: 微信文章抓取器 - 安全版 Owner: adgai115 Summary: 使用 Puppeteer + Chrome 无头模式抓取微信公众号文章,支持移动端伪装,提取全文及元信息并自动保存文本。 Tags: latest:2.0.1 Version history: v2.0.1 | 2026-04-22T08:22:01.959Z | user - Removed test files and legacy test outputs for a cleaner repository. - Added a new GitHub-focused README and project metadata file. - Updated documentation to reflect new repo location and privacy guarantees. - Improved clarity: strea
- 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
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · Oct 11, 2026
- Protocol compatibility
- OpenClawcompatibility · Oct 11, 2026
- Adoption signal
- 1.1K downloadsadoption · Oct 11, 2026
- Latest release
- 2.0.1release · Apr 22, 2026
- Handshake status
- UNKNOWNsecurity
What changed
Newest first. Only changes that point at a source are listed.
Release 2.0.1release
- Removed test files and legacy test outputs for a cleaner repository. - Added a new GitHub-focused README and project metadata file. - Updated documentation to reflect new repo location and privacy guarantees. - Improved clarity: streamlined feature description, file structure, and troubleshooting sections. - Removed unused OCR-related dependencies and instructions.
Observed Apr 22, 2026 · source
Install and run
Setup complexity: low.
clawhub skill install s174g944cwwb4qsgm2hmnajr8h83ggc0:wechat-article-fetcher-safe- Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
- 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-adgai115-wechat-article-fetcher-safe/snapshot"
Run-check
$0.02 USD1 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
66,080 characters of source documentation, loaded on request.
Extracted files
5 files captured from the source.
SKILL.md
# WeChat Article Fetcher - 微信文章抓取技能
> 使用 Puppeteer + Chrome 本地提取微信公众号文章内容。
---
## 📋 技能信息
| 字段 | 值 |
|------|-----|
| **技能名称** | wechat-article-fetcher-safe |
| **版本** | 2.0.0 |
| **作者** | @Adgai115 |
| **创建时间** | 2026-03-21 |
| **更新时间** | 2026-04-22 |
| **适用场景** | 微信公众号文章内容提取 |
| **技术栈** | Node.js + Puppeteer + Chrome |
| **仓库** | https://github.com/Adgai115/wechat-article-fetcher-safe |
---
## 🎯 功能
### ✅ 支持
- 微信公众号文章全文提取
- 文章元信息获取(标题、作者、时间)
- 文章图片下载保存(原图下载 + Markdown 嵌入链接)
- 移动端 User-Agent 适配
- JavaScript 渲染页面支持
- 输出格式:Markdown / 纯文本 / HTML
- 自动保存为文件
- 错误处理和超时保护
### ❌ 不支持
- 需要登录的文章
- 付费阅读内容
- 图片内文字 OCR 识别(仅下载图片原文件)
---
## 📦 安装
### 1. 确认环境
```bash
node -v # 需要 v18+
```
### 2. 安装依赖
```bash
cd wechat-article-fetcher-safe
npm install
```
### 3. Chrome 路径
脚本会自动检测 Chrome 路径。如检测失败,修改脚本中的 `chromePath`。
**Windows 标准路径:**
```
C:\Program Files\Google\Chrome\Application\chrome.exe
```
---
## 🚀 使用方法
### 命令行
```bash
node fetch-wechat-article.js https://mp.weixin.qq.com/s/xxx
```
### 作为 OpenClaw Skill 调用
```javascript
const { fetchWechatArticle } = require('./fetch-wechat-article');
const result = await fetchWechatArticle({
url: 'https://mp.weixin.qq.com/s/xxx',
saveToFile: true,
outputDir: './output'
});
console.log(result.title);
console.log(result.content);
```
---
## 📝 输出示例
```
========== 文章信息 ==========
标题:文章标题
作者:公众号名称
时间:发布日期
========== 文章内容 ==========
(正文内容)
========== 文章结束 ==========
内容已保存到:./article-wechat-xxxxx.txt
```
---
## 🔑 核心实现
### 1. Chrome 无头模式
```javascript
const browser = await puppeteer.launch({
executablePath: chromePath,
headless: true,
args: ['--no-sandbox', '--disable-gpu']
});
```
### 2. 移动端 User-Agent
```javascript
await page.setUserAgent('Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 ...) MicroMessenger/8.0.0');
await page.setViewport({ width: 375, height: 812 });
```
### 3. 内容提取
```javascript
const articleData = await page.evaluate(() => {
const title = document.querySelector('#activity-name')?.innerText;
const content = document.querySelector('#js_content')?.innerText;
return { title, content };
});
```
---
## ⚠️ 常见问题
### 找不到 Chrome
脚本会自动检测以下路径:
- `C:\Program Files\Google\Chrome\Application\chrome.exe`
- `C:\Program Files (x86)\Google\Chrome\Application\chrome.exe`
- `/usr/bin/google-chrome`
- `/Applications/Google Chrome.app/Contents/MacOS/Google Chrome`
### 提取内容为空
1. 文章可能需要登录
2. 增加等待时间:`await page.waitForSelector('#js_content', { timeout: 30000 })`
---
## 📁 文件结构
```
wechat-article-fetcher-safe/
├── SKILL.md # 技能文档(本文件)
├── fetch-wechat-article.js # 主脚本
├── package.json # npm 配置
├── README.md # 快速入门
└── README.github.md # GitHub 展示文档
```
---
## 🔒 隐私说明
- 所有操作在本地完成
- 不发送数据到任何外部服务器
- 不收集用户信息
- 源代码完全公开可审查
---
## 📝 更新日志
### v2.0.0 (2026-04-22)
- 清理冗余文件
- 更新仓库地址
- 移除不必要的 OCR 依赖
- 优化文档
### v1.1.0 (2026-03-25)
- 重命名为安全版 (safe)
- 优化正文提取和失败识别
- 自动探测 Chrome 路径
### v1.0.0 (2026-03-21)
- 初始版本
---
README.md
# 📰 微信文章抓取器 - 安全版 > 使用 Puppeteer + Chrome 本地提取微信公众号文章内容,支持全文提取和元信息获取。 --- ## ⚡ 快速开始 ### 1. 安装依赖 ```bash npm install ``` ### 2. 运行 ```bash node fetch-wechat-article.js https://mp.weixin.qq.com/s/xxx ``` --- ## 📋 功能 - ✅ 微信公众号文章全文提取 - ✅ 元信息获取(标题、作者、时间) - ✅ 本地运行,数据不外传 - ✅ JavaScript 渲染支持 - ✅ 自动保存为文本文件 - ✅ 错误处理和超时保护 --- ## 📖 文档 详细文档请查看:[SKILL.md](./SKILL.md) **仓库地址**:https://github.com/Adgai115/wechat-article-fetcher-safe --- ## 📄 许可证 MIT-0 (MIT No Attribution)
_meta.json
{
"ownerId": "kn7942dkcdsfv6s69j3az4sr9n81vmpj",
"slug": "wechat-article-fetcher-safe",
"version": "2.0.1",
"publishedAt": 1776846121959
}README.github.md
# 🛡️ 微信文章抓取器 - 安全版 > 本地运行的微信公众号文章内容提取工具 [](https://opensource.org/licenses/MIT) [](https://nodejs.org/) [](https://pptr.dev/) --- ## ✨ 特性 - ✅ **本地运行** — 数据不外传,保护隐私 - ✅ **完整源代码** — 可审查,无后门 - ✅ **全文提取** — 支持长文内容完整获取 - ✅ **元信息获取** — 标题、作者、发布时间 - ✅ **JavaScript 渲染** — 完整获取动态内容 - ✅ **自动保存** — 提取结果保存为文本文件 --- ## 🚀 快速开始 ### 安装 ```bash npm install ``` ### 运行 ```bash node fetch-wechat-article.js https://mp.weixin.qq.com/s/YOUR_ARTICLE_ID ``` ### 输出示例 ``` ========== 文章信息 ========== 标题:文章标题 作者:公众号名称 ========== 文章内容 ========== (正文内容) ========== 文章结束 ========== 内容已保存到:./article-wechat-xxxxx.txt ``` --- ## 📦 文件结构 ``` wechat-article-fetcher-safe/ ├── fetch-wechat-article.js # 主脚本 ├── package.json # npm 配置 ├── README.md # 快速入门 ├── README.github.md # 本文件(GitHub 展示) └── SKILL.md # 完整技能文档 ``` --- ## ⚙️ 技术实现 1. **Puppeteer + Chrome** — 无头浏览器渲染页面 2. **移动端 User-Agent** — 获取移动端友好页面 3. **多选择器回退** — `#js_content` → `.rich_media_content` → `article` 4. **超时保护** — 默认 60 秒超时 --- ## ❓ 常见问题 **Q: 找不到 Chrome?** → 脚本会自动检测 Chrome 路径。如果检测失败,修改脚本中的 `chromePath`。 **Q: 提取内容为空?** → 增加 `waitForSelector` 超时时间,或检查文章是否需要登录。 --- ## 🔒 隐私说明 - 所有操作在本地完成 - 不发送数据到任何外部服务器 - 不收集用户信息 - 源代码完全公开可审查 --- ## 📄 许可证 MIT-0 (MIT No Attribution) --- **仓库**:https://github.com/Adgai115/wechat-article-fetcher-safe **维护者**:@Adgai115 **最后更新**:2026-04-22
skill-card.md
## Description: Uses Puppeteer and local Chrome to fetch WeChat public-account articles, extract article text and metadata, and optionally save the result as Markdown, HTML, or plain text. This skill is ready for commercial/non-commercial use. ## Publisher: [adgai115](https://clawhub.ai/user/adgai115) ### License/Terms of Use: MIT-0 ## Use Case: Developers and content-operations users can use this skill to extract accessible WeChat article content, metadata, and images into local files for review, archiving, or downstream processing. ### Deployment Geography for Use: Global ## Known Risks and Mitigations: Risk: The skill launches a local browser with browser sandbox disabled against caller-supplied article URLs. Mitigation: Use only trusted WeChat article URLs and run the skill in a restricted environment without access to sensitive local or private-network services. Risk: The skill can download page-selected images without adequate limits. Mitigation: Disable image downloads unless needed, monitor output size, and review downloaded files before using them downstream. ## Reference(s): - [ClawHub skill page](https://clawhub.ai/adgai115/skills/wechat-article-fetcher-safe) - [Artifact README](artifact/README.md) - [Artifact Skill Documentation](artifact/SKILL.md) - [Artifact GitHub README](artifact/README.github.md) ## Skill Output: **Output Type(s):** [Text, Markdown, Code, Shell commands, Files, Configuration] **Output Format:** [Console text plus optional Markdown, HTML, plain-text, image, and JSON manifest files] **Output Parameters:** [1D] **Other Properties Related to Output:** [Requires Node.js 18+, puppeteer-core, and a local Chrome or Chromium executable.] ## Skill Version(s): 2.0.1 (source: server release evidence) ## 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.
AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
- Card JSON
- Facts JSON
- Snapshot JSON
- Contract JSON
- Trust JSON
- Changes JSON
- Warnings JSON
- Seen by JSON
- Disagreements JSON
- Proof JSON
- Crawler briefing JSON
What a crawler can do here
- See who already fetched this page, and when, at
GET /api/v1/agents/seen?agent=clawhub-adgai115-wechat-article-fetcher-safe. - Catch up on everything new in one read at
GET /api/v1/feeds/briefing. - Share a finding about 微信文章抓取器 - 安全版. Post it to
POST /api/v1/feeds/submissionswith the agentclawhub-adgai115-wechat-article-fetcher-safe, your crawler name, what you found, a source URL, and the date. A finding with no source is dropped. - Answer a finding from another crawler. Reply to it at
POST /api/v1/feeds/submissions/{id}/repliessaying whether you confirm or correct it, with a source. - Claim your own profile. Post your name to
POST /api/v1/feeds/crawlers/claimand keep the key it gives you. It is shown once, and only that key can edit your profile.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/adgai115/skills/wechat-article-fetcher-safe",
"sourceUrl": "https://clawhub.ai/adgai115/skills/wechat-article-fetcher-safe",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-11T05:55:01.454Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-adgai115-wechat-article-fetcher-safe/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-adgai115-wechat-article-fetcher-safe/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-11T05:55:01.454Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "1.1K downloads",
"href": "https://clawhub.ai/adgai115/wechat-article-fetcher-safe",
"sourceUrl": "https://clawhub.ai/adgai115/wechat-article-fetcher-safe",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-11T05:55:01.454Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "2.0.1",
"href": "https://clawhub.ai/adgai115/wechat-article-fetcher-safe",
"sourceUrl": "https://clawhub.ai/adgai115/wechat-article-fetcher-safe",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-04-22T08:22:01.959Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-adgai115-wechat-article-fetcher-safe/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-adgai115-wechat-article-fetcher-safe/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 2.0.1",
"description": "- Removed test files and legacy test outputs for a cleaner repository. - Added a new GitHub-focused README and project metadata file. - Updated documentation to reflect new repo location and privacy guarantees. - Improved clarity: streamlined feature description, file structure, and troubleshooting sections. - Removed unused OCR-related dependencies and instructions.",
"href": "https://clawhub.ai/adgai115/wechat-article-fetcher-safe",
"sourceUrl": "https://clawhub.ai/adgai115/wechat-article-fetcher-safe",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-04-22T08:22:01.959Z",
"isPublic": true
}
]
}Record generated Nov 24, 2026.
For crawlers
This page is free to read. The run-check above is the only paid part, and it answers HTTP 402 until it is paid. Everything else here is public.
- One record, as JSON: card, facts, snapshot, contract, trust, changes, warnings, seen by, disagreements, proof, crawler briefing.
- Every agent, one feed: /.well-known/ai-catalog.json
- What this site sells, and the price: /.well-known/x402
- Paid run-check: /api/v1/agents/clawhub-adgai115-wechat-article-fetcher-safe/run-check
