
Security News
pnpm 11.5 Adds Support for Recognizing npm Staged Publishes
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.
wechat-article-to-markdown
Advanced tools
微信公众号文章抓取 & Markdown 转换工具。
使用 cheerio + axios + turndown 将微信公众号文章转换为干净的 Markdown 文件,图片自动下载到本地。
🔗 同系列 AI 工具: bilibili-cli — B站命令行工具,支持视频信息、字幕、搜索、互动,同样为 AI Agent 设计。
code-snippet 代码块,保留语言标识 、多余空行、行尾空格# 全局安装
npm install -g wechat-article-to-markdown
# 或使用 npx 直接运行(无需安装)
npx wechat-article-to-markdown "https://mp.weixin.qq.com/s/xxxxxxxx"
# 全局安装后
wechat-to-md "https://mp.weixin.qq.com/s/xxxxxxxx"
# 或从源码运行
git clone git@github.com:jackwener/wechat-article-to-markdown.git
cd wechat-article-to-markdown
npm install
node index.js "https://mp.weixin.qq.com/s/xxxxxxxx"
输出目录结构:
output/
└── 文章标题/
├── 文章标题.md
└── images/
├── img_001.png
├── img_002.png
└── ...
# 文章标题
> 公众号: xxx
> 发布时间: 2026-02-28 11:42
> 原文链接: https://mp.weixin.qq.com/s/...
---
正文内容...

| 功能 | 方案 |
|---|---|
| HTTP 请求 | axios + 浏览器 UA 伪装 |
| HTML 解析 | cheerio (jQuery-like selector) |
| HTML → Markdown | turndown |
| 图片下载 | axios arraybuffer + 并发控制 |
| 元素 | 选择器 |
|---|---|
| 标题 | #activity-name |
| 公众号名 | #js_name |
| 发布时间 | JS 变量 create_time |
| 正文 | #js_content |
| 图片 | img[data-src] (懒加载) |
| 代码块 | .code-snippet__fix |
# 克隆到项目的 skills 目录
mkdir -p .agents/skills
git clone git@github.com:jackwener/wechat-article-to-markdown.git .agents/skills/wechat-article-to-markdown
# 或者只复制 SKILL.md
curl -o .agents/skills/wechat-article-to-markdown/SKILL.md \
https://raw.githubusercontent.com/jackwener/wechat-article-to-markdown/main/SKILL.md
添加后,支持 .agents/skills/ 的 AI Agent 会自动发现并使用本工具。
官方支持 OpenClaw 和 ClawHub 生态。通过 ClawHub 安装:
clawhub install wechat-article-to-markdown
安装后即可在 OpenClaw 中直接使用。SKILL.md 同时兼容 Claude Code 和 OpenClaw 两个生态。
MIT
FAQs
微信公众号文章抓取 & Markdown 转换工具 (cheerio + axios + turndown)
The npm package wechat-article-to-markdown receives a total of 0 weekly downloads. As such, wechat-article-to-markdown popularity was classified as not popular.
We found that wechat-article-to-markdown demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.