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
累計下載
1626
星標
-
全站排名
#4,685
全站前 93% · 「知識管理」前 94%
平台累計安裝累計下載星標評論
ClawHub ↗331191--
SkillHub ↗1031626-—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

它使用 Playwright 驅動無頭 Chromium 載入 JavaScript 頁面,並提取標題、作者、釋出時間、正文和字數,返回結構化 JSON;若瀏覽器不可用,也可搜尋內容聚合站的轉載。首次使用需要安裝 Chromium。它無法繞過付費或僅關注者可見的登入限制,映象回退也只適用於較受歡迎的文章。

資料釋出於 2026-10-29

可以用來做什麼

  • 從微信公眾號文章連結提取正文及其頁面後設資料。
  • 將獲取結果整理為便於摘要、分析或歸檔的結構化內容。
  • 在無法使用瀏覽器時,嘗試查詢可用的轉載內容。

什麼時候用

  • 需要閱讀、總結、分析或歸檔使用者提供的微信公眾號文章時。
  • 需要從 JavaScript 渲染的文章頁面提取正文時。
  • 文章受登入限制或轉載不易找到時,需要先判斷該技能的訪問限制時。

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

從這個微信公眾號連結提取可訪問的正文,並返回標題、作者、釋出時間和內容。
如果文章需要登入或無法開啟,請說明訪問限制,不要嘗試繞過。

月度資料趨勢

累計下載1626
278100217262026-03 · 累計下載 3782026-05 · 累計下載 7912026-07 · 累計下載 11132026-08 · 累計下載 12982026-09 · 累計下載 162626-0326-09
星標-
0112026-03 · 星標 -2026-05 · 星標 -2026-07 · 星標 -2026-08 · 星標 -2026-09 · 星標 -26-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-091626—-
2026-081298+16.6%-
2026-071113—-
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),按月更新。口徑說明見資料方法。