Loading...
Loading...
WeChat Official Account Article Aggregator. Batch fetch the latest article list of specified WeChat Official Account authors via the mptext.top API, download article content and parse it into Markdown/HTML/plain text formats. It supports fetching by official account name or fakeid, and comes with 8 popular AI tech official accounts pre-configured. Applicable scenarios: fetch the latest articles of specified official accounts, batch crawl content from multiple authors, aggregated reading of official account articles, technical information collection. Keywords: official account article acquisition, WeChat article crawling, official account aggregation, article collection, mptext API.
npx skill4agent add wwwzhouhui/skills_collection wechat-article-aggregatorpython scripts/fetch_articles.py --api-key YOUR_KEY --fakeids "MzkzNDQxOTU2MQ=="python scripts/fetch_articles.py --api-key YOUR_KEY --fakeids "MzkzNDQxOTU2MQ==,MjM5NDI4MTY3NA==" --limit 3python scripts/fetch_articles.py --api-key YOUR_KEY --fakeids "赛博禅心,饼干哥哥AGI"python scripts/fetch_articles.py --api-key YOUR_KEY --fakeids all --limit 2pip install requests beautifulsoup4 html2textMinimum Dependencies: Onlyis a required dependency.requestsandbeautifulsoup4are used to enhance Markdown conversion effects. If not installed, the built-in HTML parser will be used.html2text
| Parameter | Type | Required | Default Value | Description |
|---|---|---|---|---|
| string | Yes | - | mptext.top API Key |
| string | Yes | - | Official account fakeid list (comma-separated), official account name, or |
| int | No | 2 | Number of articles fetched per official account |
| string | No | | Output directory |
| string | No | | Output format: |
| string | No | Auto find | Path of custom official account list JSON file |
| float | No | 1.0 | Request interval in seconds |
| flag | No | - | List all pre-configured official account information |
X-Auth-Keyfakeid__bizpython scripts/fetch_articles.py --api-key YOUR_KEY --fakeids "MzkzNDQxOTU2MQ==" --limit 5#js_contentpython scripts/fetch_articles.py --api-key YOUR_KEY --fakeids "赛博禅心" --format markdownpython scripts/fetch_articles.py --api-key YOUR_KEY --fakeids "赛博禅心,饼干哥哥AGI,老金开源" --limit 3allpython scripts/fetch_articles.py --api-key YOUR_KEY --fakeids allpython scripts/fetch_articles.py --api-key dummy --fakeids dummy --list-accountsimport 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"
# Get article list of a single official account
articles = get_article_list(api_key, "MzkzNDQxOTU2MQ==", limit=2)
for art in articles:
print(art['title'], art['url'])
# Download and parse article content
html = download_article_html(api_key, articles[0]['url'])
markdown = extract_markdown_from_html(html, title=articles[0]['title'])
print(markdown[:500])
# Batch fetch multiple official accounts
accounts = load_accounts()
fakeids = resolve_fakeids("赛博禅心,饼干哥哥AGI", accounts)
summary = fetch_all(api_key, fakeids, limit=2, output_dir="./output")
print(f"Success: {summary['success']}, Fail: {summary['fail']}")output/
├── 赛博禅心/
│ ├── 文章标题1.md
│ └── 文章标题2.md
├── 饼干哥哥AGI/
│ ├── 文章标题1.md
│ └── 文章标题2.md
├── 老金开源/
│ └── ...
└── summary.json # Metadata summary of all articles{
"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"
}
]
}
]
}GET https://down.mptext.top/api/public/v1/article?fakeid={URL_ENCODED_FAKEID}&limit={N}| Parameter | Description |
|---|---|
| fakeid of the official account, requires URL encoding ( |
| Number of articles returned |
X-Auth-Key: {YOUR_API_KEY}[
{
"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| Parameter | Description |
|---|---|
| WeChat article URL, requires URL encoding |
| Fixed as |
X-Auth-Key: {YOUR_API_KEY}id="js_content"scriptstylenoscripthtml2text| No. | Official Account Name | Category | FakeID |
|---|---|---|---|
| 1 | 饼干哥哥AGI | AI Programming | |
| 2 | 赛博禅心 | AI Frontier | |
| 3 | 可怜的小互 | AI Technology | |
| 4 | 宝玉的工程技术分享 | Technical Translation | |
| 5 | 苍何 | AI Practice | |
| 6 | 老金开源 | Claude Code | |
| 7 | 玩转AI工具 | AI Tools | |
| 8 | 袋鼠帝AI客栈 | AI Practice | |
--accounts-file--interval#js_contentbeautifulsoup4html2text#js_contentall