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"
# Unit tests (default CI path)
uv run --with pytest pytest -q -m "not e2e"
# Live E2E against real WeChat articles
WECHAT_E2E_URLS="https://mp.weixin.qq.com/s/Y7dyRC7CJ09miHWU6LBzBA,https://mp.weixin.qq.com/s/xxxxxxxx" \
uv run --with pytest pytest -q -m e2e -s
e2e tests require network and browser runtime, so they run via manual GitHub Actions workflow .github/workflows/e2e.yml.
Use as AI Agent Skill
This project ships with SKILL.md, so AI agents can discover and use this tool workflow.
release.yml triggers on v* tags, runs unit tests + live e2e tests, then publishes to PyPI with trusted publishing (id-token: write).
For release e2e targets, set repository variable RELEASE_E2E_URLS (comma-separated article URLs).
If not set, workflow falls back to https://mp.weixin.qq.com/s/Y7dyRC7CJ09miHWU6LBzBA.