← Back to Skills Marketplace
zmlgit

WeChat Browser Reader

by 反应慢 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
142
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install wechat-browser-reader
Description
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...
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install wechat-browser-reader
  3. After installation, invoke the skill by name or use /wechat-browser-reader
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release: read WeChat articles via Chrome DevTools, bypassing captcha and JS encryption
Metadata
Slug wechat-browser-reader
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 142 downloads so far.

How do I install WeChat Browser Reader?

Run "/install wechat-browser-reader" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is WeChat Browser Reader free?

Yes, WeChat Browser Reader is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does WeChat Browser Reader support?

WeChat Browser Reader is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created WeChat Browser Reader?

It is built and maintained by 反应慢 (@zmlgit); the current version is v1.0.0.

💬 Comments