返回 Skill 列表
extension
分类: 数据与分析无需 API Key

wechat-article-to-markdown

从 mp.weixin.qq.com 抓取微信公众号文章并转换为 Markdown。微信文章转 Markdown 工具。

person作者: jackwenerhubclawhub

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