/install wechat-browser-reader
WeChat Browser Reader
Read WeChat articles via Chrome DevTools when HTTP-based extractors fail.
Prerequisites
- Chrome with remote debugging enabled:
google-chrome --no-first-run --remote-debugging-port=9222 --user-data-dir=/tmp/chrome-debug-profile - OpenClaw browser tools available (navigate_page, evaluate_script, etc.)
Workflow
1. Navigate
navigate_page(url=\x3Carticle_url>)
2. Handle Captcha (if present)
If the page shows "环境异常" / "去验证":
take_snapshot() # find the "去验证" element
click(uid=\x3Cverify_button_uid>)
If the page shows "轻触查看原文" (non-WeChat container):
evaluate_script(() => document.querySelector('.wx_expand_article_button_wrap')?.click())
3. Wait for Content
WeChat articles use JS encryption. Content may take 3-5 seconds to decrypt after page load.
wait_for(text=["activity-name", "js_content"], timeout=15000)
4. Extract Content
evaluate_script(() => {
const title = document.getElementById('activity-name')?.innerText || '';
const author = document.getElementById('js_name')?.innerText || '';
const content = document.getElementById('js_content')?.innerText || '';
return { title, author, contentLength: content.length, content };
})
If activity-name is empty but js_content exists, content is loaded — just extract it.
If both are empty after 10+ seconds, try:
evaluate_script(() => new Promise(resolve => {
setTimeout(() => {
const el = document.getElementById('js_content');
resolve({ exists: !!el, htmlLen: el?.innerHTML?.length || 0, text: el?.innerText || '' });
}, 5000);
}))
5. Return to User
Summarize or present the article content. Key fields:
- title: article title
- author: account name
- content: full article text
Common Issues
| Symptom | Cause | Fix |
|---|---|---|
| "环境异常" | Captcha triggered | Click "去验证", wait for redirect |
| "轻触查看原文" | Non-WeChat browser | Click the button or use JS click |
| Empty content after load | JS decryption not complete | Wait 3-5 seconds, retry extraction |
| Chrome not connected | Remote debugging not running | Start Chrome with --remote-debugging-port=9222 |
| Page stuck on loading | Network or rendering issue | Reload page, check network conditions |
Tips
- Always use
evaluate_scriptwithsetTimeout(3-5s) for reliable content extraction — WeChat's JS decryption is async - If captcha keeps appearing, the IP may be rate-limited — wait a few minutes
- The approach works because a real Chrome browser executes WeChat's decryption scripts, unlike HTTP-only fetchers
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install wechat-browser-reader - 安装完成后,直接呼叫该 Skill 的名称或使用
/wechat-browser-reader触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
WeChat Browser Reader 是什么?
Read WeChat Official Account articles (mp.weixin.qq.com) via Chrome DevTools browser automation. Use when user provides a WeChat article URL and other extrac... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 142 次。
如何安装 WeChat Browser Reader?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install wechat-browser-reader」即可一键安装,无需额外配置。
WeChat Browser Reader 是免费的吗?
是的,WeChat Browser Reader 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
WeChat Browser Reader 支持哪些平台?
WeChat Browser Reader 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 WeChat Browser Reader?
由 反应慢(@zmlgit)开发并维护,当前版本 v1.0.0。