wechat-article-to-markdown
Fetch WeChat Official Account articles and convert them to clean Markdown.
Features
- Anti-detection fetching with Camoufox
- Extract article metadata (title, account name, publish time, source URL)
- Convert WeChat article HTML to Markdown
- Download article images to local
images/and rewrite links - Handle WeChat
code-snippetblocks with language fences
Installation
# Recommended: pipx
pipx install wechat-article-to-markdown
# Or: uv tool
uv tool install wechat-article-to-markdown
Or from source:
git clone git@github.com:jackwener/wechat-article-to-markdown.git
cd wechat-article-to-markdown
uv sync
Usage
# Installed CLI
wechat-article-to-markdown "https://mp.weixin.qq.com/s/xxxxxxxx"
# Run in repo with uv
uv run wechat-article-to-markdown "https://mp.weixin.qq.com/s/xxxxxxxx"
# Backward-compatible local entry
uv run main.py "https://mp.weixin.qq.com/s/xxxxxxxx"
Output structure:
output/
└── <article-title>/
├── <article-title>.md
└── images/
├── img_001.png
├── img_002.png
└── ...
Use as AI Agent Skill
This project ships with SKILL.md, so AI agents can discover and use this tool workflow.
Claude Code / Antigravity
# Clone into your project's skills directory
mkdir -p .agents/skills
git clone git@github.com:jackwener/wechat-article-to-markdown.git \
.agents/skills/wechat-article-to-markdown
# Or copy SKILL.md only
curl -o .agents/skills/wechat-article-to-markdown/SKILL.md \
https://raw.githubusercontent.com/jackwener/wechat-article-to-markdown/main/SKILL.md
OpenClaw / ClawHub
Officially supports OpenClaw and ClawHub:
clawhub install wechat-article-to-markdown
PyPI Publishing (GitHub Actions)
Repository: jackwener/wechat-article-to-markdown
Workflow: .github/workflows/publish.yml
Environment: pypi
publish.yml triggers on v* tags and workflow_dispatch, builds with uv build, then publishes with trusted publishing (id-token: write).
功能特性
- 使用 Camoufox 进行反检测抓取
- 提取标题、公众号名称、发布时间、原文链接
- 将微信公众号文章 HTML 转换为 Markdown
- 下载图片到本地
images/并自动替换链接 - 处理微信
code-snippet代码块并保留语言标识
安装
# 推荐:pipx
pipx install wechat-article-to-markdown
# 或者:uv tool
uv tool install wechat-article-to-markdown
使用示例
wechat-article-to-markdown "https://mp.weixin.qq.com/s/xxxxxxxx"
作为 AI Agent Skill 使用
项目自带 SKILL.md,可供支持 .agents/skills/ 约定的 Agent 自动发现。
OpenClaw / ClawHub
clawhub install wechat-article-to-markdown
License
MIT
Metadata
Release files for wechat-article-to-markdown 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| wechat_article_to_markdown-0.1.0.tar.gz | 6.9 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wechat_article_to_markdown-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.5 kB
Release files / wechat_article_to_markdown-0.1.0.tar.gz
| Download URL | wechat_article_to_markdown-0.1.0.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f750dfd36306ddf197363517954312f08e6da71e7e26b393a3ba36aa4a51521
|
|
BLAKE2b-256 checksum How to use checksums |
9ed17b1626c2533e122064c49ffe588786ee3179b0971cb703c2efaf29fbc123
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 4, 2026.
Transparency logRelease files / wechat_article_to_markdown-0.1.0-py3-none-any.whl
| Download URL | wechat_article_to_markdown-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
85e773f489b0d65872f7958152bbd5b2e3761f0b12262b7d176257bb1676457d
|
|
BLAKE2b-256 checksum How to use checksums |
2700e6cb084dc170039460e74b4added5a34ecd4264dacc8bbaa078859984fe4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 4, 2026.
Transparency logSecurity for wechat-article-to-markdown 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for wechat_article_to_markdown-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 4, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.