Extract full text and figures from a WeChat public account (微信公众号) article URL and save as a clean Markdown file. Handles WeChat's bot-detection by finding mirror sites automatically. Use when the user shares an mp.weixin.qq.com URL and asks to save, archive, extract, or read the article.
Extract full text and figures from a WeChat public account (微信公众号) article URL and save as a clean Markdown file. Handles WeChat's bot-detection by finding mirror sites automatically. Use when the user shares an mp.weixin.qq.com URL and asks to save, archive, extract, or read the article.
WeChat Article Extractor
Extract WeChat public account articles to clean Markdown. WeChat blocks headless browsers (环境异常 CAPTCHA) and web_fetch gets empty JS-rendered pages, so the reliable approach is: find a mirror on aggregator sites, then extract content.
Scope & Boundaries
This skill handles:
Extracting article text, images, and metadata from WeChat article URLs
Finding mirror copies when direct access is blocked
Converting HTML to clean Markdown
Saving output as .md files
This skill does NOT handle:
Publishing or syncing to note-taking apps (that's the user's workflow)
Batch extraction of multiple articles (handle one at a time)
WeChat login, authentication, or account management
Translating article content
Inputs
Input
Required
Description
WeChat URL
Yes
An mp.weixin.qq.com link
Output filename
No
Defaults to kebab-case of article title
Save location
No
Defaults to /tmp/
Outputs
A Markdown file with full article content, images, and metadata header
Console confirmation with file path and character count
Extract content from the snapshot and format with the header template.
Error Handling
Problem
Detection
Action
WeChat blocks access
rawLength < 500 or "环境异常"
Search for mirrors (Step 3)
No mirrors found
Search returns 0 relevant results
Try Chrome Relay fallback
Mirror content truncated
Output < 1000 chars when original is long
Try next mirror site
Script extraction fails
Python error or empty output
Fall back to web_fetch on mirror URL
Images broken
Image URLs return 404
Note in output; images may expire
Success Criteria
Output Markdown contains the full article text (not truncated)
Title and metadata are correctly extracted
Images are preserved with working URLs
No HTML artifacts or navigation junk in output
File is saved at the specified location
Notes
WeChat image URLs from mirrors (e.g., api.ibos.cn proxy) are generally valid and render in most Markdown viewers
Mirror sites typically publish within minutes of the original
The · · · section dividers are WeChat style — preserve them
For very long articles (>50K chars), the script handles them fine but web_fetch may truncate
Configuration
No persistent configuration required. The skill uses standard OpenClaw tools (web_fetch, web_search, exec) and optionally browser for the Chrome Relay fallback.