8421bit

微信公众号文章导出

Contentv1.0.0
By 8421bitUpdated 2026-05-11wechat-article-reader@clawhub_8421bit/wechat-article-reader
Article Writing#WeChat#微信

According to AlphaMoat, as of 2026-10, 微信公众号文章导出 has 20,313 downloads and 14 stars — ranked by downloads #1,391 among 10,914 AI skills in this ranking, and #150 of 927 in Content.

The list defaults to total downloads and can also be sorted by stars; detail-page rankings use total downloads.

Downloads
20.3K
Stars
14
Overall download rank
#1,391
Top 13% overall · Top 17% in Content
PlatformDownloadsStarsComments
ClawHub ↗2.6K4-
SkillHub ↗20.3K14—

Platforms count differently and update at different times.

What this skill does

It fetches the article page, takes the title, author and publish time, converts the body into Markdown with YAML front matter and names the file with a timestamp. The default output is the workspace source directory and can be changed. No API key is needed, but articles behind a login cannot be read and only text is saved, not images. Login-gated pages may not be available. Review extracted content and confirm rights before redistributing it.

Profile published 2026-10-29

What you can do with it

  • Save one article into a local knowledge base
  • Export several WeChat articles for later search

When to use it

  • When an mp.weixin.qq.com link should be archived
  • When WeChat articles must become Markdown

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Export this article to Markdown for me
Save these WeChat articles into my source folder

Monthly Trend

Downloads20.3K
2.3K12.0K21.7K2026-03 · Downloads 3.6K2026-05 · Downloads 6.4K2026-06 · Downloads 6.9K2026-07 · Downloads 7.4K2026-08 · Downloads 7.9K2026-09 · Downloads 9.8K2026-10 · Downloads 20.3K26-0326-0926-10
Stars14
08152026-03 · Stars 12026-05 · Stars 92026-06 · Stars 102026-07 · Stars 122026-08 · Stars 142026-09 · Stars 142026-10 · Stars 1426-0326-0926-10

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-1020.3K—14
2026-099.8K—14
2026-087.9K+6.5%14
2026-077.4K+7.9%12
2026-066.9K+8.2%10
2026-056.4K—9
2026-033.6K—1

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

4.4 KB · ClawHub v1.0.0
---
name: WeChat-article-reader
description: "将微信公众号文章导出为 Markdown 格式。当用户提供微信公众号链接 (mp.weixin.qq.com) 或要求下载/导出/保存微信文章时触发。默认保存到工作空间的 source 目录。"
---

# 微信公众号文章导出技能 (WeChat-Article-Reader)

## 触发条件

当以下情况时触发此技能:
Show all (175 lines)

- 用户提供微信公众号文章链接 (mp.weixin.qq.com)
- 用户要求"下载"、"导出"或"保存"微信文章
- 用户要求将微信文章转换为 Markdown
- 用户提到"公众号文章"、"微信文章"、"下载微信"、"导出公众号"

**触发示例:**
- "下载这篇文章 https://mp.weixin.qq.com/s/xxx"
- "把这篇公众号文章导出为 markdown"
- "保存微信文章到本地"
- "帮我保存这篇微信文章"

## 工作原理

此技能使用 Python 脚本执行以下操作:
1. 获取微信文章 HTML 页面
2. 从 Open Graph 元标签提取元数据(标题、作者、发布时间)
3. 从 `#js_content` div 提取正文内容
4. 使用 markdownify 将 HTML 转换为 Markdown
5. 保存为带 YAML Front Matter 的 Markdown 文件

## 脚本目录

**基础目录**:`~/.npm-global/lib/node_modules/openclaw/skills/WeChat-article-reader`

**脚本位置**:`scripts/export.py`

## 安装设置

### 首次安装

1. **检查 Python 依赖**:
```bash
python3 -c "import requests, bs4, markdownify" 2>/dev/null || echo "需要安装依赖"
```

2. **如需安装依赖**:
```bash
pip3 install requests beautifulsoup4 lxml markdownify
```

### 无需配置

此技能开箱即用,无需 API Key 或额外配置。使用带浏览器头部的 HTTP 请求来获取微信文章。

## 执行步骤

当此技能被触发时,按以下步骤执行:

### 步骤 1:提取 URL

从用户请求中识别微信文章 URL。有效 URL 以以下开头:
- `https://mp.weixin.qq.com/s/`
- `https://mp.weixin.qq.com/...`

### 步骤 2:确定输出目录

默认输出目录:`~/.openclaw/workspace-qiming/source`

用户可以指定自定义输出目录。

### 步骤 3:运行导出脚本

```bash
# 如需要则创建输出目录
mkdir -p "$OUTPUT_DIR"

# 运行导出脚本
python3 ~/.npm-global/lib/node_modules/openclaw/skills/WeChat-article-reader/scripts/export.py "$URL" "$OUTPUT_DIR"
```

### 步骤 4:报告结果

告知用户:
- 成功或失败状态
- 输出文件路径
- 文章标题和元数据
- 任何错误或警告

## 命令示例

```bash
# 基本导出
python3 ~/.npm-global/lib/node_modules/openclaw/skills/WeChat-article-reader/scripts/export.py "https://mp.weixin.qq.com/s/xxx" ~/.openclaw/workspace-qiming/source

# 指定自定义输出目录
python3 ~/.npm-global/lib/node_modules/openclaw/skills/WeChat-article-reader/scripts/export.py "$URL" "/path/to/output"
```

## 输出格式

导出的 Markdown 文件包含:

```yaml
---
title: 文章标题
author: 作者名称
publish_time: 发布时间
source_url: 原文链接
exported_at: 导出时间戳
description: 文章描述
---

# 文章标题

> 原文链接: URL

**作者**: XXX
**发布时间**: XXX

-----

文章正文内容...
```

## 文件命名

生成的文件遵循格式:`YYYYMMDD_HHMMSS_文章标题.md`

标题中的特殊字符会被清理以确保文件系统兼容性。

## 常见问题与限制

### 常见问题

| 问题 | 原因 | 解决方案 |
|------|------|----------|
| "无法找到文章正文内容" | 文章需要登录或已被删除 | 尝试在浏览器中打开,或使用浏览器工具 |
| 连接超时 | 网络问题或限流 | 等待后重试,检查网络连接 |
| 编码问题 | 特殊字符 | 脚本自动处理 UTF-8 |

### 已知限制

- **需要登录的文章**:部分文章需要微信登录才能查看
- **反爬虫**:微信有反机器人措施,可能阻止频繁请求
- **图片**:不下载文章图片,仅保存 Markdown 文本
- **复杂格式**:可能无法完全保留所有格式

## 依赖项

| 包名 | 版本 | 用途 |
|------|------|------|
| requests | >=2.31.0 | HTTP 请求 |
| beautifulsoup4 | >=4.12.0 | HTML 解析 |
| lxml | >=4.9.0 | XML/HTML 解析器 |
| markdownify | >=0.11.6 | HTML 转 Markdown |

## 错误处理

脚本会:
- 打印清晰的中文错误信息
- 使用正确的状态码退出
- 优雅处理缺失的依赖
- 处理前验证 URL 格式

## 来源

基于 wechat-article-export 项目:
- GitHub: https://github.com/wechat-article/wechat-article-exporter
- 本 Skill 由 启明 创建

## 开源协议

MIT License

Popular in Content

李白.SkillContent

李白.Skill:润色专家 检测并消除中文文本中的AI生成痕迹,将生硬的机器输出转化为自然流畅的人类文笔。融合规则检测、分层改写和质控流水线,确保最终文本通过人工审查。

↓ 1.3M★ 121user_741dc82b
libai-skillContent

李白.Skill:润色专家 检测并消除中文文本中的AI生成痕迹,将生硬的机器输出转化为自然流畅的人类文笔。融合规则检测、分层改写和质控流水线,确保最终文本通过人工审查。

↓ 1.0M★ 11user_814dbe54
文章去AI味工具Content

Detects and removes AI writing traces so text reads more like a person wrote it.

↓ 951.0K★ 767user_ab5ae6ee
视频号爆款短视频拆解(付费版:全能)【零一数科·出品】Content

【零一数科·出品】视频号爆款短视频拆解(全能版)(付费版)。视频号爆款短视频拆解(付费版:全能)。一键拆解爆款,把一条视频号视频拆成结构分段、爆款归因、六维评分和可借鉴策略,照着学照着抄。支持视频号分享链接和本地视频,付费全能版远端分析,1–5 分钟出可视化 HTML 报告。

↓ 918.5K★ 116u_c19e970c
视频号挂车爆单短视频脚本生成【零一数科·出品】Content

【零一数科·出品】视频号挂车爆单短视频脚本生成(付费版)。一条链接二创脚本,丢进爆款视频号链接即以此骨架改写成你的挂车脚本,或按方向/目的/商品原创多条口播脚本(含分段表、口播全文、六维质检评分)。

↓ 554.4K★ 39u_c19e970c
HumanizerContent

A writing-editor skill that finds the usual marks of AI-generated text and rewrites them into more natural prose without losing the meaning.

↓ 508.8K★ 1.1KB*T
中文公文写作Content

用于中文公文、事务性材料和新闻稿件的起草、改写、压缩、润色、审校、文种核对、去口语化、降 AI 味及 Word 格式处理,适用于机关、企事业单位、学校和新闻机构。涵盖申请、请示、报告、通知、通告、意见、决定、决议、议案、公报、命令、函、复函、批复、说明、方案、纪要、公告、公示、通报、制度、规定、办法、细则、操作规程、工作要点、总结、调研、讲话、致辞、主持词、述职、可研、审查材料、技术需求、新闻消息、编者按、新闻评论,以及采购、整改、反馈和 AI 算力等场景。

↓ 413.4K★ 84gongyu0918
视频号爆款文案生成(体验版)【零一数科·出品】Content

【零一数科·出品】视频号爆款文案生成(体验版)。免费免登录出脚本,给创作目的、行业、受众、选题就按爆款结构(Hook-中段-CTA、节奏标签)产出口播脚本,信息不全也能按爆款潜质兜底。本地运行、无需 Key,零成本上手。

↓ 339.1K★ 94u_c19e970c

Data as of 2026-10. Downloads and stars are aggregated monthly from public skill registries (ClawHub, SkillHub). See data methodology.