wechat-article-to-markdown

Fetch WeChat Official Account (微信公众号) articles from mp.weixin.qq.com and convert to Markdown. 微信文章转 Markdown 工具。

INSTALLATION
npx skills add https://github.com/jackwener/wechat-article-to-markdown --skill wechat-article-to-markdown
Run in your project or agent environment. Adjust flags if your CLI version differs.

SKILL.md

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

  • Anti-detection fetch with Camoufox
  • Metadata extraction (title, account name, publish time, source URL)
  • Image localization to local files
  • WeChat code-snippet extraction and fenced code block output
  • HTML to Markdown conversion via markdownify
  • 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
BrowserAct

Let your agent run on any real-world website

Bypass CAPTCHA & anti-bot for free. Start local, scale to cloud.

Explore BrowserAct Skills →

Stop writing automation&scrapers

Install the CLI. Run your first Skill in 30 seconds. Scale when you're ready.

Start free
free · no credit card