Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器clawhub未标认证来源可访问clear审计提醒

wechat-article-extractor微信文章提取器

Agent Skill

wechat-article-extractor 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

42,336

周安装

1,768

GitHub Stars

公开资料未说明

下载量

14,832
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:wechat-article-extractor(微信文章提取器)
来源仓库:https://github.com/chunhualiao/wechat-article-extractor
安装命令:
openclaw skills install wechat-article-extractor
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install wechat-article-extractor

简介

wechat-article-extractor 从微信公众号 URL 提取全文与图片,保存为 Markdown。

  • 适用于微信内容归档、信息清理与跨平台分享等研究需求。
  • 通过 clawhub 安装并使用 openclaw skills install wechat-article-extractor 命令集成。
  • 使用前需确认权限范围,注意可能涉及网页解析与媒体资源下载。
  • 建议查阅原始文档以了解 m.weixin.qq.com 处理逻辑与图片外链策略。

SKILL.md

name
wechat-article-extractor
description
>
triggers

WeChat Article Extractor

Extract WeChat public account articles to clean Markdown. WeChat blocks headless browsers (环境异常 CAPTCHA) and web_fetch gets empty JS-rendered pages, so the reliable approach is: find a mirror on aggregator sites, then extract content.

Scope & Boundaries

This skill handles:

  • Extracting article text, images, and metadata from WeChat article URLs
  • Finding mirror copies when direct access is blocked
  • Converting HTML to clean Markdown
  • Saving output as .md files

This skill does NOT handle:

  • Publishing or syncing to note-taking apps (that's the user's workflow)
  • Batch extraction of multiple articles (handle one at a time)
  • WeChat login, authentication, or account management
  • Translating article content

Inputs

InputRequiredDescription
WeChat URLYesAn mp.weixin.qq.com link
Output filenameNoDefaults to kebab-case of article title
Save locationNoDefaults to /tmp/

Outputs

  • A Markdown file with full article content, images, and metadata header
  • Console confirmation with file path and character count

Workflow

Step 1 — Try direct fetch (fast path)

web_fetch(url, extractMode="markdown", maxChars=50000)

Success check: If result rawLength > 500 AND content has real paragraphs (not just nav/footer text) → skip to Step 4 Option B.

Failure indicators: rawLength < 500, content is navigation/boilerplate only, or contains "环境异常" → go to Step 2.

Step 2 — Extract article metadata

From the URL or any partial content, identify:

  • Article title (from <title> or og:title)
  • Author / account name (from og:description or page content)

If metadata is unavailable from the URL, ask the user for the article title.

Step 3 — Search for mirrors

web_search("<article title> <author/account name>")

Mirror site priority (ranked by content quality and reliability):

  1. 53ai.com — full content, reliable formatting
  2. mp.ofweek.com — tech articles
  3. juejin.cn — developer content
  4. woshipm.com — product/business content
  5. 36kr.com — tech/business news

If title is unknown, try: web_search("site:53ai.com <keywords from URL path>")

If no mirrors found: Try the Chrome Extension Relay fallback (see Fallback section).

Step 4 — Download and extract

Option A — Mirror found:

curl -s -L "<mirror_url>" -o /tmp/wechat-article.html

Verify file size > 10KB (smaller usually means redirect/error page).

Run the extraction script:

python3 <skill_dir>/scripts/extract_wechat.py /tmp/wechat-article.html /tmp/<output-filename>.md

Replace <skill_dir> with the directory containing this SKILL.md.

Option B — Direct fetch succeeded (Step 1): Format the fetched markdown with the header template below.

Step 5 — Verify output quality

Check the output file:

  • Has a title (not "WeChat Article")
  • Has multiple paragraphs of real content
  • Images have valid URLs (not broken/placeholder)
  • No excessive HTML artifacts remaining

If output looks truncated or garbled, try a different mirror site (return to Step 3).

Step 6 — Deliver to user

Report:

  • File saved at: <path>
  • Title: <title>
  • Size: <char count> characters
  • Image count: <N> images

If the user wants it saved to a specific location (e.g., Obsidian), follow their instructions for the final copy.

Markdown Header Template

Every extracted article must include this header:

# <title>

**作者:** <author>
**来源:** 微信公众号「<account_name>」
**日期:** <date>
**原文:** <original_wechat_url>

---

> **摘要:** <1-2 sentence summary generated from content>

---

Fields that cannot be determined should be omitted (don't write "Unknown").

Fallback: Chrome Extension Relay

If no mirror exists (very new or niche article):

Tell the user (in Chinese if they wrote in Chinese):

"没有找到镜像。请在 Chrome 中打开这篇文章,然后点击 OpenClaw Browser Relay 扩展图标(badge 亮起),我就能直接读取内容。"

Then use:

browser(action="snapshot", profile="chrome")

Extract content from the snapshot and format with the header template.

Error Handling

ProblemDetectionAction
WeChat blocks accessrawLength < 500 or "环境异常"Search for mirrors (Step 3)
No mirrors foundSearch returns 0 relevant resultsTry Chrome Relay fallback
Mirror content truncatedOutput < 1000 chars when original is longTry next mirror site
Script extraction failsPython error or empty outputFall back to web_fetch on mirror URL
Images brokenImage URLs return 404Note in output; images may expire

Success Criteria

  • Output Markdown contains the full article text (not truncated)
  • Title and metadata are correctly extracted
  • Images are preserved with working URLs
  • No HTML artifacts or navigation junk in output
  • File is saved at the specified location

Notes

  • WeChat image URLs from mirrors (e.g., api.ibos.cn proxy) are generally valid and render in most Markdown viewers
  • Mirror sites typically publish within minutes of the original
  • The · · · section dividers are WeChat style — preserve them
  • For very long articles (>50K chars), the script handles them fine but web_fetch may truncate

Configuration

No persistent configuration required. The skill uses standard OpenClaw tools (web_fetch, web_search, exec) and optionally browser for the Chrome Relay fallback.

Required tools:

ToolPurpose
web_fetchDirect article fetch attempt
web_searchMirror site discovery
execRun curl and Python extraction script

Optional tools:

ToolPurpose
browserChrome Extension Relay fallback

System dependencies:

DependencyPurpose
Python 3.8+Extraction script
curlMirror page download

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

89.5%
按下载量换算13,275

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

未展示

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills