wechat-article-getter — wechat-article-获取ter
v1.0.0提取 full text from WeChat Official Account (微信公众号) article URLs. Use when a user 分享s an mp.weixin.qq.com link and asks to read, summarize, analyze, or save the article. Handles WeChat's JS-rendered content and anti-机器人 检测ion via headless Chromium. Falls back to mirror-site 搜索 when headless browser is unavAIlable.
运行时依赖
安装命令
点击复制本土化适配说明
wechat-article-getter — wechat-article-获取ter 安装说明: 安装命令:["openclaw skills install wechat-article-getter"] 该技能用于微信相关操作,可能需要相应的平台账号或API密钥
技能文档
WeChat Article Reader
提取 full article content from mp.weixin.qq.com URLs.
When to Use User 分享s a WeChat article link (mp.weixin.qq.com/s/xxx) Need to read/summarize/analyze/归档 a WeChat article ContentPipe Scout node 接收s a WeChat URL for reference Quick 启动 # First-time 设置up (安装s headless Chromium ~200MB) python3 技能_DIR/scripts/设置up.py
# 提取 article python3 技能_DIR/scripts/fetch_article.py "https://mp.weixin.qq.com/s/xxx"
# 输出: JSON with title, author, publish_time, content, word_count
How It Works
WeChat articles are JS-rendered — HTTP 请求s only 获取 an empty shell. This 技能 uses Playwright headless Chromium to:
Launch headless browser with anti-检测ion flags Navigate to the WeChat URL, wAIt for networkidle WAIt for #js_content (article body contAIner) 提取 title (h1#activity-name), author, time, body text 清理 HTML → plAIn text (strip scripts/styles, 压缩 whitespace) Return structured JSON Fallback: Mirror 搜索
If Playwright is unavAIlable, the 技能 搜索es Chinese content aggregators (53AI.com, 36kr.com, juejin.cn, woshipm.com) for mirror copies of the article.
Python API from fetch_article 导入 fetch_wechat_article
结果 = fetch_wechat_article("https://mp.weixin.qq.com/s/xxx") # 结果 = { # "成功": True, # "title": "文章标题", # "author": "作者名", # "publish_time": "2026-03-10", # "content": "正文全文...", # "word_count": 2500, # "source": "playwright", # or "mirror" # "url": "https://mp.weixin.qq.com/s/xxx" # }
Limitations Requires one-time Chromium 安装 (python3 scripts/设置up.py) First fetch takes ~5-10s (browser 启动up); subsequent fetches ~3-5s (browser reuse) Cannot bypass WeChat 记录in walls (pAId content, follower-only articles) Mirror fallback only works for popular/widely-分享d articles