About wechat-article-to-markdown
wechat-article-to-markdown fetches WeChat Official Account articles and converts them into Markdown files, with images saved locally. It is for archiving articles or preparing them for summarization and knowledge-base ingestion.
Key features
- 01Fetch public WeChat article URLs
- 02Extract article metadata
- 03Save images locally with concurrent downloads
- 04Convert HTML and code snippets to Markdown
Use cases
- 01Archive a WeChat article locally
- 02Prepare article text for AI summarization
- 03Ingest article content into a knowledge base
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ jackwener/ wechat-article-to-markdown --skill wechat-article-to-markdownAfter installing, type/wechat-article-to-markdownin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
requirements.txtpyproject.tomlmain.py.gitignoreREADME.mdwechat_article_to_markdown.py.github/workflows/ci.ymlrelease.ymlpublish.ymle2e.ymltests/test_core.pytest_e2e_live.pyDetails
From the project READMEWeChat 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.comURL is required
Comments
Markdown supported