← Browse

@jackwener/wechat-article-to-markdown

B

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

skillclaude

Install

agr install @jackwener/wechat-article-to-markdown --target claude

Writes 8 files into .claude/skills/, pinned to git-99449444.

  • .claude/skills/wechat-article-to-markdown/.gitignore
  • .claude/skills/wechat-article-to-markdown/README.md
  • .claude/skills/wechat-article-to-markdown/SKILL.md
  • .claude/skills/wechat-article-to-markdown/main.py
  • .claude/skills/wechat-article-to-markdown/pyproject.toml
  • .claude/skills/wechat-article-to-markdown/requirements.txt
  • .claude/skills/wechat-article-to-markdown/uv.lock
  • .claude/skills/wechat-article-to-markdown/wechat_article_to_markdown.py

Document


name: wechat-article-to-markdown description: Fetch WeChat Official Account (微信公众号) articles from mp.weixin.qq.com and convert to Markdown. 微信文章转 Markdown 工具。 author: jackwener version: "1.0.0" tags:

  • wechat
  • 微信
  • 微信文章
  • 公众号
  • mp.weixin.qq.com
  • markdown
  • article
  • converter
  • cli

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

Trustgrade B

  • passBody integrity

    Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.

  • passType matchnot applicable to this artifact type

    Whether the artifact is really the kind of thing its metadata claims it is.

  • passFreshness

    How long since the source repository was last pushed to.

  • passPrompt injection

    Scans the artifact's own text for instructions aimed at your agent rather than at you.

  • warnLicenseno SPDX license detected

    Whether the source repository declares an SPDX license permissive enough to redistribute.

How the grade is calculated

Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:

  • Aevery check passed
  • Bone warning
  • Ctwo warnings
  • Dprompt injection or body integrity failed, or three warnings
  • Fone of those failed, and something else is wrong

These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.

Versions

  • git-994494446f0b2026-07-31