🧪 Skills
WeChat Article Reader
Read WeChat official account articles. Use the built-in browser tool to open the page and extract body text. Always append ?scene=1 to the URL.
v1.0.0
Description
name: wechat-mp-reader description: Read WeChat official account articles. Use the built-in browser tool to open the page and extract body text. Always append ?scene=1 to the URL.
WeChat Article Reader
URL Normalization
Critical: The URL must end with ?scene=1 (not &scene=1), otherwise a CAPTCHA will be triggered.
Rules:
- No query params → append
?scene=1 - Has existing
?params → parse and rewrite query to includescene=1
Steps
- Open the page with
browser open "<url>?scene=1" - Wait for content with
browser wait "#js_content" --load networkidle - Extract body text with
browser evaluate --fn "() => document.querySelector('#js_content')?.innerText || document.querySelector('.rich_media_content')?.innerText || document.body.innerText" - Return plain text content
- Close the tab with
browser close <tabId>
Troubleshooting
- CAPTCHA → verify the URL has
?scene=1 - Empty content → page may not have fully loaded, retry
browser wait - Deleted article → the page will display a notice
Reviews (0)
Sign in to write a review.
No reviews yet. Be the first to review!
Comments (0)
No comments yet. Be the first to share your thoughts!