wechat-article-to-markdown

Fetch WeChat public account articles and convert them to Markdown with metadata and local images.

Updated Jan 25, 2026
One-click install
npx skills add https://github.com/xfs96192/claude-config --skill wechat-article-to-markdown
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wechat-article-to-markdown
Source: https://github.com/xfs96192/claude-config/tree/main/skills/wechat-article-to-markdown
Command: npx skills add https://github.com/xfs96192/claude-config --skill wechat-article-to-markdown

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill fetches WeChat public account articles and converts them into clean Markdown, preserving essential metadata and downloading images for local use.

Core Features & Use Cases

  • Anti-detection fetching using Camoufox to bypass environment checks
  • Article extraction: title, author, publish time, and original URL
  • Local image download and Markdown image references to local files
  • Code block extraction and preservation during Markdown conversion
  • Metadata retention and structured output for integration with knowledge bases
  • HTML → Markdown conversion and concurrent image downloading for speed

Quick Start

Run uv run main.py "<微信文章URL>" to generate a Markdown file under output for the given article.

Frequently Asked Questions about wechat-article-to-markdown

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert a WeChat article to Markdown with images downloaded locally?

To convert a WeChat article to Markdown and download images locally, run the script with the article URL. It fetches the HTML using an anti-detection headless browser, extracts metadata like title and author, and saves Markdown with local image references.

What metadata is preserved when saving WeChat public account articles as Markdown?

When saving WeChat articles as Markdown, the extraction preserves the article title, author, publish time, and original URL. This structured metadata is retained in the output to facilitate integration with knowledge bases.

Does converting WeChat articles to Markdown work with code blocks?

Yes, converting WeChat articles to Markdown works with code blocks. The HTML to Markdown conversion process specifically extracts and preserves code block formatting, ensuring technical content remains intact during the extraction.

How does WeChat article web scraping handle anti-detection and environment checks?

WeChat article web scraping handles anti-detection by using Camoufox, a headless browser-based fetch method. This bypasses environment checks to reliably access and extract content from WeChat public accounts without being blocked.

Can I batch convert multiple WeChat articles to Markdown at once?

Yes, you can batch convert multiple WeChat articles to Markdown. The skill applies to saving individual articles or batches, utilizing concurrent image downloading to speed up the extraction and conversion process.

Do I need Python and uv installed to use the WeChat article to Markdown converter?

Yes, you need Python and the uv package manager installed. You run the conversion script via the command uv run main.py followed by the WeChat article URL, which executes the environment with its listed dependencies.