🎁 Get the FREE AI Skills Starter GuideSubscribe →
BytesAgainBytesAgain
🦀 ClawHub

Wechat Article For Ai

by @soar999

Convert WeChat Official Account (微信公众号) articles to clean Markdown files with locally downloaded images.

Versionv1.0.0
Installs4
💡 Examples

CLI (single article)

python main.py "https://mp.weixin.qq.com/s/ARTICLE_ID"

CLI (batch from file)

python main.py -f urls.txt -o ./output -v

CLI Options

| Flag | Description | |------|-------------| | -f FILE | Text file with URLs (one per line) | | -o DIR | Output directory (default: ./output) | | -c N | Image download concurrency (default: 5) | | --no-images | Skip image download, keep remote URLs | | --no-headless | Show browser (for solving CAPTCHAs) | | --force | Overwrite existing output | | --no-frontmatter | Use blockquote metadata instead of YAML | | -v | Verbose/debug logging |

MCP Server

Run as an MCP server for AI tool integration:

python mcp_server.py

Exposes two tools:

  • convert_article(url, output_dir, download_images, concurrency, use_frontmatter) — Convert a single article
  • batch_convert(urls, output_dir, download_images, concurrency) — Convert multiple articles
  • MCP Configuration (for claude_desktop_config.json or similar)

    {
      "mcpServers": {
        "wechat-to-md": {
          "command": "python",
          "args": ["mcp_server.py"],
          "cwd": ""
        }
      }
    }
    

    ⚙️ Configuration

  • Python 3.10+
  • Install dependencies: pip install -r requirements.txt
  • Camoufox browser will be auto-downloaded on first run
  • View on ClawHub
    TERMINAL
    clawhub install wechat-article-for-ai

    🧪 Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    🔍 Can't find the right skill?

    Search 60,000+ AI agent skills — free, no login needed.

    Search Skills →