Aller au contenu
Skillpedia
Recherche10.0k · #12034

wechat-article-downloader

Ce qu’il fait

Cette compétence télécharge des articles de comptes publics WeChat à l'aide d'un service d'outils MCP. Elle s'adresse aux personnes qui veulent conserver, archiver ou analyser des articles de comptes WeChat.

Quand l’utiliser

  • ✓Quand vous voulez enregistrer un article WeChat en PDF, en fichier Word ou en Markdown.
  • ✓Lorsque vous voulez télécharger une collection complète d'un compte public.
  • ✓Lorsque vous voulez exporter les titres, liens et autres métadonnées des articles vers un fichier CSV.

Lien du skill

https://github.com/qiye45/wechatDownload/blob/main/skills/wechat-article-downloader/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/qiye45/wechatDownload/blob/main/skills/wechat-article-downloader/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Télécharge cet article WeChat en fichier Markdown et enregistre son titre et son lien dans un CSV.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

La compétence vérifie d'abord un serveur MCP local et peut utiliser un serveur distant pour certains outils. Elle appelle l'outil de téléchargement ou d'export dont vous avez besoin et enregistre les résultats dans le format choisi.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

WeChat Article Downloader

This skill helps you download articles from WeChat official accounts using an MCP server that interfaces with a WeChat article download tool.

Prerequisites

The skill uses local MCP endpoint http://127.0.0.1:4545/mcp for full functionality.

If local MCP is unavailable, you may fallback to https://changfengbox.top/api/mcp for remote-supported tools.

Local MCP tools:

  • single_article_download - Download a single article
  • get_public_account_id - Get public account credentials
  • batch_download_articles - Batch download all articles from an account
  • export_article_data - Export article metadata to CSV

Remote fallback MCP (https://changfengbox.top/api/mcp) currently supports:

  • Methods: initialize, tools/list, tools/call
  • Tools in tools/call name:
    • wechat - Download a single article
    • wechat_collection - Download a public account collection (appmsgalbum)

Important: remote fallback does not expose local tool names like single_article_download, batch_download_articles, get_public_account_id, or export_article_data.

Workflow

1. Check Local MCP Server Status

Before using most functionality, verify local MCP is running:

import requests

LOCAL_MCP_ENDPOINT = "http://127.0.0.1:4545/mcp"

def check_local_mcp():
    response = requests.post(
        LOCAL_MCP_ENDPOINT,
        json={"jsonrpc": "2.0", "method": "initialize", "id": 1},
        headers={"Content-Type": "application/json"},
        timeout=3,
    )
    if response.status_code != 200:
        raise RuntimeError("Local MCP is not available")
    return LOCAL_MCP_ENDPOINT

local_mcp_endpoint = check_local_mcp()

If local MCP is inaccessible, inform the user they need to:

  1. Open the WeChat article download tool
  2. Check the "启动MCP" checkbox to start the MCP service
  3. Wait for the confirmation message showing the service is running on port 4545

2. Single Article Download

Use local tool first. If local MCP fails, fallback to remote wechat tool.

import requests

LOCAL_MCP_ENDPOINT = "http://127.0.0.1:4545/mcp"
FALLBACK_DOWNLOAD_MCP_ENDPOINT = "https://changfengbox.top/api/mcp"

def call_tool(endpoint, tool_name, arguments, req_id=2):
    payload = {
        "jsonrpc": "2.0",
        "method": "tools/call",
        "id": req_id,
        "params": {
            "name": tool_name,
            "arguments": arguments,
        }
    }

    response = requests.post(
        endpoint,
        json=payload,
        headers={"Content-Type": "application/json"},
        timeout=10,
    )
    response.raise_for_status()
    return response.json()

def download_single_article(url):
    try:
        return call_tool(
            LOCAL_MCP_ENDPOINT,
            "single_article_download",
            {"url": url},
            req_id=2,
        )
    except Exception:
        remote_config = {
            "保存离线网页": True,
            "HTML": True,
            "MD": True,
            "PDF": False,
            "WORD": False,
            "TXT": False,
            "MHTML": False,
            "文件开头添加日期": True,
        }
        return call_tool(
            FALLBACK_DOWNLOAD_MCP_ENDPOINT,
            "wechat",
            {"url": url, "config": remote_config},
            req_id=3,
        )

# Example usage
article_url = "https://mp.weixin.qq.com/s/xxxxx"
result = download_single_article(article_url)
print(result)

The article will be downloaded to the tool's default download directory in the formats configured in the tool (HTML, PDF, Word, Markdown, MHTML, etc.).

Remote wechat config can use these keys:

  • 保存离线网页
  • HTML
  • MD
  • PDF
  • WORD
  • TXT
  • MHTML
  • 文件开头添加日期

If local 127.0.0.1:4545 is unavailable, this step should transparently use https://changfengbox.top/api/mcp with tool name wechat.

3. Download Collection (appmsgalbum)

For collection URLs, call remote wechat_collection via tools/call:

def download_collection(collection_url):
    payload = {
        "jsonrpc": "2.0",
        "method": "tools/call",
        "id": 4,
        "params": {
            "name": "wechat_collection",
            "arguments": {
                "url": collection_url,
            },
        },
    }

    response = requests.post(
        "https://changfengbox.top/api/mcp",
        json=payload,
        headers={"Content-Type": "application/json"},
        timeout=20,
    )
    response.raise_for_status()
    return response.json()
Questions fréquentes

Quels formats peut-elle enregistrer ?

La compétence liste HTML, PDF, Word, Markdown, TXT et MHTML.

Que se passe-t-il si le serveur local ne tourne pas ?

La compétence indique qu'elle peut basculer vers un point d'accès distant, qui ne prend en charge que certains outils.

Peut-elle exporter les données des articles ?

Oui. La compétence inclut un outil d'export qui écrit les métadonnées des articles dans un CSV.

Détails

Description originale de l’auteur

Download WeChat official account articles in multiple formats (HTML, PDF, Word, Markdown, TXT, MHTML), including single article download, collection (appmsgalbum) download, local bulk workflows, and metadata export. Use this skill when users ask to download WeChat articles, download public account collections, batch pull account content, or export article data.

repo: qiye45/wechatDownload

Popularité

Étoiles GitHub
10.0k
Position au classement
#12034
Licence
—
Mis à jour
01/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Skills similaires