Wechat Article Aggregator logo

Wechat Article Aggregator

Community
wwwzhouhui
wechat-article-aggregator

微信公众号文章聚合器。通过 mptext.top API 批量获取指定公众号博主的最新文章列表,下载文章内容并解析为 Markdown/HTML/纯文本格式。支持按公众号名称或 fakeid 获取,预置 8 个热门 AI 技术公众号。适用场景:获取指定公众号最新文章、批量抓取多个博主内容、公众号文章聚合阅读、技术资讯采集。关键词:公众号文章获取、微信文章抓取、公众号聚合、文章采集、mptext API。

Overview

Publisherwwwzhouhui
Repositoryskills_collection
Skill namewechat-article-aggregator
Stars
285
Forks
57
Bundled files
2
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by wwwzhouhui on GitHub. Read the source before you install it.

Installation

Install the Wechat Article Aggregator AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/wwwzhouhui/skills_collection/tree/main/wechat-article-aggregator
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wwwzhouhui/skills_collection.git /tmp/skills_collection
mkdir -p .claude/skills
cp -r /tmp/skills_collection/wechat-article-aggregator .claude/skills/wechat-article-aggregator
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Wechat Article Aggregator in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Wechat Article Aggregator on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Wechat Article Aggregator is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

微信公众号文章聚合器

通过 mptext.top API 批量获取指定公众号博主的最新文章,下载并解析为 Markdown/HTML/纯文本格式输出。

快速开始

获取单个公众号最新 2 篇文章:

bash
python scripts/fetch_articles.py --api-key YOUR_KEY --fakeids "MzkzNDQxOTU2MQ=="

获取多个公众号文章(逗号分隔 fakeid):

bash
python scripts/fetch_articles.py --api-key YOUR_KEY --fakeids "MzkzNDQxOTU2MQ==,MjM5NDI4MTY3NA==" --limit 3

按公众号名称获取:

bash
python scripts/fetch_articles.py --api-key YOUR_KEY --fakeids "赛博禅心,饼干哥哥AGI"

获取所有预置公众号的文章:

bash
python scripts/fetch_articles.py --api-key YOUR_KEY --fakeids all --limit 2

依赖安装

bash
pip install requests beautifulsoup4 html2text

最低依赖: 仅 requests 为必须依赖。beautifulsoup4 和 html2text 用于增强 Markdown 转换效果,未安装时会使用内置 HTML 解析器。

用户参数说明

参数类型必填默认值说明
--api-key / -kstring是-mptext.top 的 API Key
--fakeids / -fstring是-公众号 fakeid 列表(逗号分隔)、公众号名称、或 all
--limit / -lint否2每个公众号获取的文章数量
--output-dir / -ostring否./output输出目录
--format / -Fstring否markdown输出格式:markdown / html / text / json
--accounts-file / -astring否自动查找自定义公众号账号列表 JSON 文件路径
--interval / -ifloat否1.0请求间隔秒数
--list-accountsflag否-列出所有预置公众号信息

API Key 获取方式

API Key 来源于 mptext.top 平台,用于认证文章获取请求。在请求头中以 X-Auth-Key 传递。

fakeid 说明

fakeid 是微信公众号的唯一标识(Base64 编码的 biz 参数),可通过以下方式获取:

  1. 在微信公众号平台后台查看
  2. 从公众号文章 URL 中的 __biz 参数提取
  3. 使用本 skill 预置的账号列表

功能说明

1. 获取文章列表

调用 mptext.top API 获取指定公众号的最新文章列表:

bash
python scripts/fetch_articles.py --api-key YOUR_KEY --fakeids "MzkzNDQxOTU2MQ==" --limit 5

2. 下载并解析文章内容

获取文章 HTML 后自动提取 #js_content 正文区域,转换为 Markdown 格式:

bash
python scripts/fetch_articles.py --api-key YOUR_KEY --fakeids "赛博禅心" --format markdown

3. 批量获取多个公众号

同时获取多个公众号的最新文章:

bash
python scripts/fetch_articles.py --api-key YOUR_KEY --fakeids "赛博禅心,饼干哥哥AGI,老金开源" --limit 3

4. 获取所有预置公众号

使用 all 关键字获取所有预置公众号的文章:

bash
python scripts/fetch_articles.py --api-key YOUR_KEY --fakeids all

5. 查看预置公众号列表

bash
python scripts/fetch_articles.py --api-key dummy --fakeids dummy --list-accounts

6. 作为 Python 库调用

python
import sys
sys.path.insert(0, 'scripts')
from fetch_articles import get_article_list, download_article_html, extract_markdown_from_html, load_accounts, resolve_fakeids, fetch_all

api_key = "YOUR_API_KEY"

# 获取单个公众号文章列表
articles = get_article_list(api_key, "MzkzNDQxOTU2MQ==", limit=2)
for art in articles:
    print(art['title'], art['url'])

# 下载并解析文章内容
html = download_article_html(api_key, articles[0]['url'])
markdown = extract_markdown_from_html(html, title=articles[0]['title'])
print(markdown[:500])

# 批量获取多个公众号
accounts = load_accounts()
fakeids = resolve_fakeids("赛博禅心,饼干哥哥AGI", accounts)
summary = fetch_all(api_key, fakeids, limit=2, output_dir="./output")
print(f"成功: {summary['success']}, 失败: {summary['fail']}")

输出结构

output/
├── 赛博禅心/
│   ├── 文章标题1.md
│   └── 文章标题2.md
├── 饼干哥哥AGI/
│   ├── 文章标题1.md
│   └── 文章标题2.md
├── 老金开源/
│   └── ...
└── summary.json          # 所有文章的元数据汇总

summary.json 格式

json
{
  "fetch_time": "2026-02-23T17:30:00",
  "total_accounts": 3,
  "total_articles": 6,
  "success": 5,
  "fail": 1,
  "accounts": [
    {
      "fakeid": "MzkzNDQxOTU2MQ==",
      "name": "赛博禅心",
      "articles": [
        {
          "title": "文章标题",
          "url": "https://mp.weixin.qq.com/s/...",
          "create_time": "1708689600",
          "saved_path": "output/赛博禅心/文章标题.md",
          "status": "success"
        }
      ]
    }
  ]
}

API 接口说明

文章列表接口

GET https://down.mptext.top/api/public/v1/article?fakeid={URL_ENCODED_FAKEID}&limit={N}
参数说明
fakeid公众号的 fakeid,需 URL 编码(== → %3D%3D)
limit返回文章数量

请求头:

X-Auth-Key: {YOUR_API_KEY}

响应示例:

json
[
  {
    "title": "文章标题",
    "url": "https://mp.weixin.qq.com/s/xxxxx",
    "create_time": 1708689600
  }
]

文章下载接口

GET https://down.mptext.top/api/public/v1/download?url={URL_ENCODED_ARTICLE_URL}&type=html
参数说明
url微信文章 URL,需 URL 编码
type固定为 html(API 返回 HTML 格式)

请求头:

X-Auth-Key: {YOUR_API_KEY}

响应: 完整的微信文章 HTML 页面。

HTML 正文解析规则

从下载的 HTML 中提取正文内容:

  1. 定位 id="js_content" 的 div 元素
  2. 移除 script、style、noscript 标签内容
  3. 提取文本内容,保留段落换行
  4. 使用 html2text 转换为 Markdown(如已安装)

预置公众号列表

序号公众号名称分类FakeID
1饼干哥哥AGIAI编程MjM5NDI4MTY3NA==
2赛博禅心AI前沿MzkzNDQxOTU2MQ==
3可怜的小互AI技术MzkzMTcyMTgxNg==
4宝玉的工程技术分享技术翻译Mzk1NzgxMjQ0OA==
5苍何AI实战Mzg3MTk3NzYzNw==
6老金开源Claude CodeMzI0NzU2MDgyNA==
7玩转AI工具AI工具MzU4NTE1Mjg4MA==
8袋鼠帝AI客栈AI实战MzkwMzE4NjU5NA==

可通过 --accounts-file 参数指定自定义的公众号列表 JSON 文件来扩展。

注意事项

  • API Key 安全: 请勿将 API Key 硬编码到代码中,建议通过环境变量或命令行参数传入。
  • 请求频率: 默认间隔 1 秒,如遇 429 错误请增大 --interval 值。
  • HTML 解析: 下载接口返回完整 HTML 页面,脚本自动从 #js_content 区域提取正文。
  • 依赖降级: 未安装 beautifulsoup4 和 html2text 时,使用内置 HTMLParser 提取纯文本。
  • 文件命名: 输出文件以文章标题命名,自动去除特殊字符,长度截断为 80 字符。

触发关键词

  • "获取公众号文章"
  • "抓取微信文章"
  • "公众号文章聚合"
  • "批量获取公众号"
  • "下载公众号文章"
  • "微信文章采集"
  • "获取最新公众号文章"

更新日志

v1.0.0 (2026-02-23)

  • 初始版本
  • 支持通过 mptext.top API 获取公众号文章列表
  • 支持下载文章 HTML 并解析为 Markdown/HTML/Text/JSON
  • 内置 HTMLParser 提取 #js_content 正文(零依赖降级方案)
  • 预置 8 个热门 AI 技术公众号 fakeid
  • 支持按公众号名称或 fakeid 获取
  • 支持 all 关键字获取所有预置公众号
  • 自动生成 summary.json 汇总元数据

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Wechat Article Aggregator AI skill do?

微信公众号文章聚合器。通过 mptext.top API 批量获取指定公众号博主的最新文章列表,下载文章内容并解析为 Markdown/HTML/纯文本格式。支持按公众号名称或 fakeid 获取,预置 8 个热门 AI 技术公众号。适用场景:获取指定公众号最新文章、批量抓取多个博主内容、公众号文章聚合阅读、技术资讯采集。关键词:公众号文章获取、微信文章抓取、公众号聚合、文章采集、mptext API。

Why use Wechat Article Aggregator on TypingMind?

Because you install it once and use it with any model. Wechat Article Aggregator is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Wechat Article Aggregator in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/wwwzhouhui/skills_collection/tree/main/wechat-article-aggregator. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Wechat Article Aggregator?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Wechat Article Aggregator?

As many as you like. As long as a model supports skills, you can use Wechat Article Aggregator with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Wechat Article Aggregator AI skill free?

It is published on GitHub by wwwzhouhui. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇