360 Secure SkillHub
360 安全技能中心

wechat-article-to-markdown

这是一款微信公众号文章转Markdown工具,核心功能包括带反检测的文章抓取、元数据(标题、账号等)提取、图片本地化存储、代码片段转MD代码块。适合个人存档、AI摘要输入、知识库导入场景。输入为mp.weixin.qq.com域名的文章URL,输出为本地output目录下的MD文件及对应图片文件夹。

jackwener
jackwener
热度 45.53
最近更新 2026-05-20 03:29:09
分类:效率依赖:联网浏览搜索 / 读写文件 / 代码执行应用场景:文件转换

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add wechat-article-to-markdown
Metadata
name
wechat-article-to-markdown
description
Fetch WeChat Official Account (微信公众号) articles from mp.weixin.qq.com and convert to Markdown. 微信文章转 Markdown 工具。
author
jackwener
version
1.0.0
tags
["wechat","微信","微信文章","公众号","mp.weixin.qq.com","markdown","article","converter","cli"]

WeChat Article to Markdown

Fetch a WeChat Official Account article and convert it to a clean Markdown file.

When to use

Use this skill when you need to save WeChat articles as Markdown for:

  • Personal archive
  • AI summarization input
  • Knowledge base ingestion

Prerequisites

  • Python 3.8+
# Install
uv tool install wechat-article-to-markdown
# Or: pipx install wechat-article-to-markdown

Usage

wechat-article-to-markdown "<WECHAT_ARTICLE_URL>"

Input URL format:

  • https://mp.weixin.qq.com/s/...

Output files:

  • <cwd>/output/<article-title>/<article-title>.md
  • <cwd>/output/<article-title>/images/*

Features

  1. Anti-detection fetch with Camoufox
  2. Metadata extraction (title, account name, publish time, source URL)
  3. Image localization to local files
  4. WeChat code-snippet extraction and fenced code block output
  5. HTML to Markdown conversion via markdownify
  6. Concurrent image downloading

Limitations

  • Some code snippets are image/SVG rendered and cannot be extracted as source code
  • Public mp.weixin.qq.com URL is required