← 返回 Skills 市场
zmlgit

WeChat Browser Reader

作者 反应慢 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
142
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (SKILL.md)

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_script with setTimeout (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
安全使用建议
This skill appears to do what it says (automate a local Chrome to read WeChat articles), but it requires attaching to Chrome's remote debugging port—which effectively gives the skill full control of that browser profile. Before installing or using it: (1) only start Chrome for this skill with a dedicated temporary profile (use --user-data-dir pointing to an isolated directory) so your personal cookies and sessions are not exposed, (2) bind remote debugging to localhost and do not expose port 9222 to the network, (3) consider running Chrome in a container or VM if you want stronger isolation, (4) verify you trust the environment that provides the 'navigate_page'/'evaluate_script' tooling (those primitives can execute arbitrary JS, including reading document.cookie or other sensitive data), and (5) avoid using your main browser profile or any profile that contains authenticated sessions. If you follow these precautions the skill's behavior is coherent with its purpose; if you cannot isolate the browser instance, do not use the skill.
功能分析
Type: OpenClaw Skill Name: wechat-browser-reader Version: 1.0.0 The skill is a specialized browser automation tool designed to extract content from WeChat Official Account articles by leveraging Chrome's remote debugging port (9222). It uses standard automation commands (navigate_page, click, evaluate_script) to handle WeChat-specific challenges like asynchronous JavaScript content decryption and captcha prompts. The logic is transparent, focused entirely on the stated purpose of article extraction, and contains no evidence of malicious intent, data exfiltration, or unauthorized system access.
能力评估
Purpose & Capability
The name, description, and runtime instructions align: the skill uses Chrome DevTools automation (navigate_page, evaluate_script, click, etc.) to load and extract WeChat article content and handle captcha/decryption. There are no unrelated requirements or surprising capabilities declared.
Instruction Scope
SKILL.md contains specific, narrowly scoped steps (open URL, click verification elements, wait for decryption, evaluate DOM for title/author/content). It does not instruct reading arbitrary files, environment variables, or sending data to third-party endpoints. The actions described are appropriate for the stated task.
Install Mechanism
There is no install spec and no code files; this is instruction-only. That minimizes disk-write and supply-chain risk. The skill expects existing OpenClaw browser tooling and a local Chrome instance with --remote-debugging enabled (documented as a prerequisite).
Credentials
Although the skill requests no environment variables or credentials, it requires connecting to Chrome's remote debugging port (9222). That connection gives the controller full access to the browser instance and its profile (cookies, local storage, active sessions, bookmarks, etc.). This is proportionate to the task only if the user runs Chrome with a dedicated, isolated profile (as the README suggests /tmp/chrome-debug-profile). If the user points the debugger at their primary browser profile or exposes the port to the network, sensitive data could be accessed or exfiltrated by scripts run via evaluate_script.
Persistence & Privilege
The skill is not always-included, does not request persistent system modifications, and has no install step. It is user-invocable and will only run when invoked. There is no indication it modifies other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install wechat-browser-reader
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /wechat-browser-reader 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: read WeChat articles via Chrome DevTools, bypassing captcha and JS encryption
元数据
Slug wechat-browser-reader
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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。

💬 留言讨论