360 Secure SkillHub
360 安全技能中心

WeChat Article Reader

该技能用于读取微信公众号文章:先规范化 URL 并追加 ?scene=1,再用内置浏览器打开页面、等待内容加载、提取 #js_content 或 .rich_media_content 的正文,最后返回纯文本并关闭标签页;同时包含验证码、空内容和文章被删除的排查提示。

bernylinville
bernylinville
热度 96.83
最近更新 2026-05-11 17:31:38
分类:效率依赖:联网浏览搜索应用场景:工作流 / 研究

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add wechat-mp-reader
Metadata
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 include scene=1

Steps

  1. Open the page with browser open "<url>?scene=1"
  2. Wait for content with browser wait "#js_content" --load networkidle
  3. Extract body text with browser evaluate --fn "() => document.querySelector('#js_content')?.innerText || document.querySelector('.rich_media_content')?.innerText || document.body.innerText"
  4. Return plain text content
  5. 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