微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

wechat-article-getter

wechat-article-getter · v1.0.0
安全 unknown 级 作者 ppppanda 公开目录收录
953 下载 0 安装 2.7k 收藏 3 浏览

简介

wechat-article-getter

原始描述

Extract full text from WeChat Official Account (微信公众号) article URLs. Use when a user shares an mp.weixin.qq.com link and asks to read, summarize, analyze, or...

通过你的 Agent 添加

安装目录:wechat-article-reader/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/wechat-article-getter/
Codex CLI~/.codex/skills/wechat-article-getter/
DeepSeek Harness~/.agents/skills/wechat-article-getter/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: wechat-article-reader description: Extract full text from WeChat Official Account (微信公众号) article URLs. Use when a user shares an mp.weixin.qq.com link and asks to read, summarize, analyze, or save the article. Handles WeChat's JS-rendered content and anti-bot detection via headless Chromium. Falls back to mirror-site search when headless browser is unavailable. metadata: openclaw: requires: bins: [python3] install: - id: playwright kind: pip package: playwright label: Install Playwright (pip)

WeChat Article Reader

Extract full article content from mp.weixin.qq.com URLs.

When to Use

  • User shares a WeChat article link (mp.weixin.qq.com/s/xxx)
  • Need to read/summarize/analyze/archive a WeChat article
  • ContentPipe Scout node receives a WeChat URL for reference

Quick Start

# First-time setup (installs headless Chromium ~200MB)
python3 SKILL_DIR/scripts/setup.py

# Extract article
python3 SKILL_DIR/scripts/fetch_article.py "https://mp.weixin.qq.com/s/xxx"

# Output: JSON with title, author, publish_time, content, word_count

How It Works

WeChat articles are JS-rendered — HTTP requests only get an empty shell. This skill uses Playwright headless Chromium to:

  1. Launch headless browser with anti-detection flags
  2. Navigate to the WeChat URL, wait for networkidle
  3. Wait for #js_content (article body container)
  4. Extract title (h1#activity-name), author, time, body text
  5. Clean HTML → plain text (strip scripts/styles, compress whitespace)
  6. Return structured JSON

Fallback: Mirror Search

If Playwright is unavailable, the skill searches Chinese content aggregators (53ai.com, 36kr.com, juejin.cn, woshipm.com) for mirror copies of the article.

Python API

from fetch_article import fetch_wechat_article

result = fetch_wechat_article("https://mp.weixin.qq.com/s/xxx")
# result = {
#   "success": 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 install (python3 scripts/setup.py)
  • First fetch takes ~5-10s (browser startup); subsequent fetches ~3-5s (browser reuse)
  • Cannot bypass WeChat login walls (paid content, follower-only articles)
  • Mirror fallback only works for popular/widely-shared articles

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill