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 extractors fail due to captcha, JS encryption, or anti-scraping. Requires Chrome remote debugging (port 9222) to be running. Handles captcha verification, JS content decryption, and content extraction.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "wechat-browser-reader" with this command: npx skills add zmlgit/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=<article_url>)

2. Handle Captcha (if present)

If the page shows "环境异常" / "去验证":

take_snapshot()  # find the "去验证" element
click(uid=<verify_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

SymptomCauseFix
"环境异常"Captcha triggeredClick "去验证", wait for redirect
"轻触查看原文"Non-WeChat browserClick the button or use JS click
Empty content after loadJS decryption not completeWait 3-5 seconds, retry extraction
Chrome not connectedRemote debugging not runningStart Chrome with --remote-debugging-port=9222
Page stuck on loadingNetwork or rendering issueReload 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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Export

Export a Codex session JSONL from ~/.codex/sessions into a clean Markdown transcript in ~/Documents/Exports. Use when the user wants to export, save, or conv...

Registry SourceRecently Updated
Coding

进出口许可文档智能预审系统

进出口许可文档智能预审系统。支持 PDF 和图片处理:自动提取合同号、出口国、进口商、总金额、数量、重量、合格证编号、生产商、报关口岸等字段,检测公章,按审核规则执行审核,生成 MD 和 JSON 审核报告。支持 CLI 和对话交互两种方式触发。

Registry SourceRecently Updated
Coding

MiniMax CLI (mmx)

MiniMax CLI (mmx) 多模态能力调用工具。当用户需要生成图片、视频、音乐、语音,或使用 minimax-cli/mmx 命令时触发。用途:(1) 生成图片/视频/音乐/语音;(2) 调用 MiniMax API;(3) 查询用量额度;(4) 配置或诊断 mmx。

Registry SourceRecently Updated
Coding

Adaptive Suite

A continuously adaptive skill suite that empowers Clawdbot to act as a versatile coder, business analyst, project manager, web developer, data analyst, and N...

Registry SourceRecently Updated