Wechat Subscription Archive — Data skill for Claude Code
Claude Code Skill:抓取订阅的他人微信公众号全量历史文章,转 Markdown 本地归档(含图片、按月索引).
How to install Wechat Subscription Archive
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open lucyliufromchina-cpu/wechat-subscription-archive and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Wechat Subscription Archive does
Claude Code Skill:抓取订阅的他人微信公众号全量历史文章,转 Markdown 本地归档(含图片、按月索引)。Forked from Larkin0302/mp-data。
Alternatives in Data
- Bitbucket Data Center 71.9k ★
- Financial Services — Reference agents, skills, and data connectors for the financial-services workflows we see most — investment ba 34.5k ★
- Data Contract — This document defines which files belong to the system (auto-updatable) and which belong to the user (never to 32.5k ★
README
抓订阅公众号 — Claude Code Skill
把你**订阅的他人微信公众号**的历史文章(标题、链接、发布时间、全文、图片)归档为本地 Markdown,供研究、收藏、离线阅读、个人知识库使用。
抓的是**别人**运营的号;不是你自己号的后台数据。
现在还能怎么抓(2026-10)
| 路线 | 状态 |
|---|---|
| 公众号后台「引用文章」接口 | 2026-07-30 关闭,wechat-article-exporter 因此归档 |
| 微信读书列表接口 | 只返回最新一篇 |
| 截客户端凭证回放 getmsg(Windows 工具的做法) | 9 月起多方报告返回空;且只给最近 100 页、只有群发文章 |
搜索引擎 site:mp.weixin.qq.com |
不收录 |
| 搜狗微信搜索 | 只能按关键词碰、验证码频繁,已从本 skill 移除 |
| 微信客户端打开的文章页 | 稳定 —— 本 skill 的主方法 |
微信 Mac 4.1.x 的公众号主页是内置浏览器页面,但文章**列表**由客户端经内部通道取回,HTTP 代理看不到;只有点开的**文章页**走 HTTP。所以:本机跑 mitmproxy 旁听,微信里逐篇点开(人点或 Computer Use 点),整页落盘入库,不再二次下载,也不会触发微信的"访问太频繁"验证。合集页、顺藤摸瓜作为补充自动跑。
**不做**:伪造请求、用凭证调接口、绕过验证码或风控、换 IP 清 cookie。
安装
git clone https://github.com/lucyliufromchina-cpu/wechat-subscription-archive.git
cd wechat-subscription-archive
ln -sf "$(pwd)" ~/.claude/skills/抓订阅公众号
brew install mitmproxy
cp scripts/accounts.example.json ~/.config/抓订阅公众号/accounts.json # 填公众号名和 __biz
python3 -m unittest discover -s scripts/tests -t scripts # 自检
脚本只用 Python 3.9+ 标准库;mitmproxy 自带运行时。
使用
完整步骤见 [SKILL.md](SKILL.md);Computer Use 自动点击的规程见 [docs/codex-click-method.md](docs/codex-click-method.md)。
最短路径:
- 信任
~/.mitmproxy/mitmproxy-ca-cert.pem,系统代理指向127.0.0.1:8899,重启微信,关掉自动锁屏 mitmdump -p 8899 --allow-hosts 'mp\.weixin\.qq\.com' -s scripts/wechat_sniff.pypython3 scripts/wechat_links.py sniffed- 微信里进入公众号主页「文章」列表,逐篇点开、返回
- 采完关代理
产出在 `~/wechat-archive/<公众号>/<日期>_<标题>/`,总清单 `INDEX.csv`,覆盖情况 `_进度.md`。
历史
- 2023-11 起:公众号后台「引用文章」接口拉列表(已失效,代码见 git 历史)
- 2026-08:改搜狗「公众号名 + 关键词」
- 2026-10:主方法改为客户端打开 + 代理旁听直存;合集 / 顺藤摸瓜 / 外链一层并入
auto循环;加白名单、验证页检测、Computer Use 规程;搜狗方法移除
许可与边界
归档内容版权归原作者;本工具仅供个人研究与离线阅读,`.gitignore` 默认排除抓取内容与账号配置。
Related Skills
Sec Categories
List SEC Open Data portal categories and subscription-key scopes
Redfox MCP
MCP server for RedFoxHub — 40 ready-to-use tools for Douyin, Xiaohongshu, WeChat, Bilibili, Toutiao & TikTok d
Payforge MCP
Autonomous SaaS Monetization, Stripe Integration, Subscription Lifecycle, Usage-Based Billing & Revenue Operat
Wechat Article Pipeline Skill
WeChat Article Pipeline Skill 是一个兼容 Codex、Claude Code 等支持 Agent Skills 格式的智能体的多平台内容生产 Skill,支持文章优化、配图、排版及微信、头条
Compile Suggestion
You are an email optimization analyzer. You analyze email scanner data to suggest improvements (filter rules,
Privacy & Data Handling
This repository contains: - a plugin package (plugins/compound-engineering) made of markdown/config content -
Related Agents
Flutter GraphQL
Use this agent when integrating GraphQL APIs with Flutter apps. Specializes in graphql_flutter, query/mutation
ChatGPT On Wechat
CowAgent是基于大模型的超级AI助理,能主动思考和任务规划、访问操作系统和外部资源、创造和执行Skills、拥有长期记忆并不断成长,比OpenClaw更轻量和便捷。同时支持微信、飞书、钉钉、企微、QQ、公众号、网页