PPPPanda

wechat-article-getter

知识管理v1.0.0
作者:PPPPanda更新于 2026-05-17@clawhub_ppppanda/wechat-article-getter
信息检索文档问答#WeChat#Browser#Summarize

据 AlphaMoat 统计,截至 2026-09,wechat-article-getter 累计下载 1,626 次、获 0 个星标,在全部 5,078 个 AI 技能中排名第 4,685 位,在「知识管理」分类(442 个)中排名第 412 位。

累计安装
103
累计下载
1,626
星标
-
全站排名
#4,685
全站前 93% · 「知识管理」前 94%
平台累计安装累计下载星标评论
ClawHub ↗331,191--
SkillHub ↗1031,626-—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

它使用 Playwright 驱动无头 Chromium 加载 JavaScript 页面,并提取标题、作者、发布时间、正文和字数,返回结构化 JSON;若浏览器不可用,也可搜索内容聚合站的转载。首次使用需要安装 Chromium。它无法绕过付费或仅关注者可见的登录限制,镜像回退也只适用于较受欢迎的文章。

资料发布于 2026-10-29

可以用来做什么

  • 从微信公众号文章链接提取正文及其页面元数据。
  • 将获取结果整理为便于摘要、分析或归档的结构化内容。
  • 在无法使用浏览器时,尝试查找可用的转载内容。

什么时候用

  • 需要阅读、总结、分析或归档用户提供的微信公众号文章时。
  • 需要从 JavaScript 渲染的文章页面提取正文时。
  • 文章受登录限制或转载不易找到时,需要先判断该技能的访问限制时。

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

从这个微信公众号链接提取可访问的正文,并返回标题、作者、发布时间和内容。
如果文章需要登录或无法打开,请说明访问限制,不要尝试绕过。

月度数据趋势

累计下载1,626
2781,0021,7262026-03 · 累计下载 3782026-05 · 累计下载 7912026-07 · 累计下载 1,1132026-08 · 累计下载 1,2982026-09 · 累计下载 1,62626-0326-09
星标-
0112026-03 · 星标 -2026-05 · 星标 -2026-07 · 星标 -2026-08 · 星标 -2026-09 · 星标 -26-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-091,626—-
2026-081,298+16.6%-
2026-071,113—-
2026-05791—-
2026-03378—-

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

2.5 KB · ClawHub v1.0.0
---
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
展开全部(共 76 行)
        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

```bash
# 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

```python
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

「知识管理」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。