Przejdź do treści
Biblioteka skilli
Marketing i treści · Automatyzacja

wechat-official-batch-download

/wechat-official-batch-download

Pobiera seryjnie artykuły z WeChat Official Account, archiwizuje je wraz z HTML, obrazami i metadanymi oraz buduje korpus.

Licencja
MIT
Ostatnia zmiana repozytorium
09.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
11
Skrypty
5
Komentarze HTML
1
Adresy URL w SKILL.md
2
Przestarzałość

Brak sygnałów. Repozytorium zmienione 09.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • 5 skryptów w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
  • SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.

Skrypty: scripts/downloader.py, scripts/exporters/__init__.py, scripts/exporters/html_exporter.py, scripts/exporters/md_exporter.py, scripts/install-skill.ps1

Co robi i kiedy

Pobiera seryjnie artykuły z WeChat Official Account, archiwizuje je wraz z HTML, obrazami i metadanymi oraz buduje korpus.

Oryginalny opis (EN)

Use this skill when the user wants to batch download, archive, verify, or build a corpus from WeChat Official Account articles, or needs to fetch articles as writing references. Especially when using mp.weixin.qq.com links, down.mptext.top/dashboard, wechat-article-exporter, exported Excel/JSON link pools, or a local downloader/MCP. It teaches the agent to acquire official article URLs first, preserve raw HTML/Markdown/images/metadata, verify counts and fidelity, and avoid storing cookies, auth keys, or login secrets.

Jak działa

  1. When To Use
  2. Route First
  3. Non-Negotiable Rules
  4. Preferred Workflow
  5. Reference Route (写作参考模式)
  6. Tool Adaptation
  7. Read References As Needed
  8. Changelog
Sekcje z nagłówków SKILL.md, w oryginale · 160 linii, 1 080 słów
Podgląd SKILL.md
---
name: wechat-official-batch-download
description: Use this skill when the user wants to batch download, archive, verify, or build a corpus from WeChat Official Account articles, or needs to fetch articles as writing references. Especially when using mp.weixin.qq.com links, down.mptext.top/dashboard, wechat-article-exporter, exported Excel/JSON link pools, or a local downloader/MCP. It teaches the agent to acquire official article URLs first, preserve raw HTML/Markdown/images/metadata, verify counts and fidelity, and avoid storing cookies, auth keys, or login secrets.
version: 1.2.1
---

# WeChat Official Batch Download

Use this skill for WeChat Official Account article batch download, corpus building, and download verification.

The default goal is not just "download some pages". The goal is a traceable corpus:

```text
real mp.weixin.qq.com/s/... links
-> raw HTML + preserved Markdown + images + metadata
-> count/fidelity verification
-> valid article inventory + report
```

## When To Use

- User asks to batch download WeChat Official Account articles.
- User provides many `mp.weixin.qq.com/s/...` links or a link-pool file.
- User wants all/latest articles from one account.
- User mentions `down.mptext.top`, `wechat-article-exporter`, dashboard export, Excel/JSON address list, or WeChat corpus.
- User asks whether a downloaded corpus is complete, official, readable, or faithful.

## Route First

Classify the request. **Default is `reference`** — you do NOT need to say which mode unless you want corpus mode.

- `reference` (default): one or more article URLs downloaded as writing references. Lightweight, no local images, no corpus. Files go to project `_source/`.
- `single`: one user-provided article URL, downloaded as corpus (with images, HTML, metadata).
- `recent`: latest N articles, default 10 if no count is provided.
- `all`: all backend/export-visible articles for a target account.
- `link-pool`: user already has Excel/JSON/TXT links.
- `verify`: check an existing corpus.
- `fallback`: official link pool unavailable or site downloader failed.

The agent classifies like this:
- User says "下载这篇文章" / "帮我拉一下" / "参考一下" / "放到 source 里" → **reference** (default)
- User says "做个语料库" / "全部下载" / "要验收" / "包括图片" → **corpus mode** (single / all / link-pool)

## Non-Negotiable Rules

1. Official corpus work starts with real `https://mp.weixin.qq.com/s/...` URLs.
2. Do not claim "all articles" without a counted official URL pool or a user-verified export.
3. Treat `down.mptext.top/dashboard/` and `wechat-article-exporter` primarily as link-pool/export tools, not guaranteed final body downloaders.
4. If a website's body download fails, keep the exported links and switch to local download.
5. Never store or print cookies, `auth-key`, `X-Auth-Key`, API keys, tokens, browser storage, or login secrets.
6. Do not treat mirrors/search snippets as official source material unless clearly labeled as fallback.
7. Do not claim exact text fidelity unless raw visible article text and preserved Markdown were compared after whitespace normalization.

## Preferred Workflow

1. Establish the official URL pool.
   - Best: fixed/logged-in WeChat backend or user-exported official address list.
   - Good fallback: `down.mptext.top/dashboard/` or private `wechat-article-exporter` export.
   - Acceptable input: user-provided Excel/JSON/TXT containing real article URLs.

2. Normalize the link pool.
   - Keep only real `mp.weixin.qq.com/s/...` article links.
   - Deduplicate.
   - Save `links.json` with count, source route, and timestamp.

3. Download articles.
   - Use the local downloader available in the user's environment.
   - If an MCP downloader is available, call `initialize`, `tools/list`, and smoke-test 3 links before batch work.
   - If using scripts, preserve raw HTML first, then derive Markdown and metadata from the raw source.

4. Produce mandatory artifacts for every successful article.
   - `html_raw/*.html`
   - `articles_preserved/*.md`
   - `images/<article>/...`
   - `meta/*.json`

5. Verify the corpus.
   - URL count vs attempted count.
   - raw HTML count.
   - preserved Markdown count.
   - valid body count.
   - image count and missing-image count.
   - fidelity warnings.
   - failed URLs and retry/fallback notes.

6. Report clearly.
   - Give output directory and counts.
   - Separate official source, fallback source, failures, and warnings.
   - Do not paste full article text into chat.

## Reference Route (写作参考模式)

Use this route when the user needs articles **as writing references**, not as a permanent corpus.

### Output rules

- Each article becomes one standalone Markdown file.
- **Images keep original WeChat CDN links** — do not download to local.
- No HTML/JSON/metadata artifacts.
- No acceptance report.

### Project directory

If no project directory exists yet, the agent creates it:

```text
To-be-used/Project_[Title]/
└── _source/
    ├── Refer_[ArticleTitle1].md
    ├── Refer_[ArticleTitle2].md
    └── ...
```

- Project title: derived from article topic or user-provided intent.
- If a project already exists, reuse it and add files under its `_source/`.
- Filename: `Refer_` + article title (sanitized).
- One `.md` per article, never merged into one file.
- Frontmatter includes source URL and fetch date.

### Image handling

```markdown
<!-- Keep original WeChat image links, do not download -->
![](https://mmbiz.qpic.cn/...)
```

No local image download, no image folder, no cleanup needed after reference use.

### Lifecycle

1. User provides one or more article URLs.
2. Agent fetches each article, converts to Markdown.
3. Each `.md` saved to `_source/Refer_[Title].md`.
4. When the project is archived, reference files archive with it.
5. No separate cleanup needed.

## Tool Adaptation

This skill does not assume one fixed workstation. Use the best available local equivalent:

- **Local Python Scripts**:
  - `scripts/downloader.py`: Multi-threaded downloader. Uses a **direct connection by default** with a high-fidelity Chrome UA to bypass the hotlinking block; the CF Worker proxy pool is opt-in via `--proxy`. With no proxy available (pool file missing or empty) it also falls back to a direct request, and if every proxy attempt fails it retries once directly instead of aborting the batch. Supports request throttling (`--delay`) and authentication (`--cookie`).
  - `scripts/exporters/md_exporter.py`: Exporter converting raw HTML to preserved Markdown.
  - `scripts/exporters/html_exporter.py`: Exporter normalizing HTML into clean, offline-friendly single files via `no-referrer` metadata injection and protocol-relative stylesheet link corrections (`https:` prefixing).
- local Python/Node downloader
- existing WeChat article export script
- MCP downloader with tools such as `single_article_download` or `batch_download_articles`
- browser-assisted capture for single article troubleshooting

If no downloader exists, create a small local script only after the link pool is known and after checking legal/compliance boundaries.

## Read References As Needed

- For operational detail, read `references/batch-download-sop.md`.
- For the website/tool comparison, read `references/tool-comparison.md`.
- For a portable handoff summary to show a human, read `references/portable-usage.md`.

## Changelog

- **v1.2.1 (2026-10-07)**: Fixed the `--proxy` toggle, which was a no-op: `Downloader.__init__` rebuilt a `ProxyManager` whenever it was passed `None`, so the pool was loaded even without the flag and the documented "direct by default" behaviour never took effect. Now `None` really means direct, and when the pool is used but every attempt fails the downloader retries once directly instead of aborting the batch.
- **v1.2.0 (2026-06-27)**: Disabled CF Worker proxy pool by default. Reconfigured downloader to prioritize direct HTTPS requests using browser User-Agent. Added `--proxy` toggle, `--delay` throttling, and `--cookie` authorization parameters.
- **v1.1.0 (2026-06-27)**: Added local Python proxy pool downloader and Markdown/HTML exporters. Kept images and stylesheets on WeChat CDN and injected `no-referrer` meta to bypass hotlinking block, ensuring clean single-file structures.
- **v1.0.0**: Initial release of the batch download skill specification.

Pliki w paczce (11)
  • SKILL.md 8 KB
  • agents/openai.yaml 1 KB
  • references/batch-download-sop.md 3 KB
  • references/portable-usage.md 3 KB
  • references/tool-comparison.md 2 KB
  • scripts/downloader.py 18 KB
  • scripts/install-skill.ps1 1 KB
  • scripts/proxy_pool.txt 3 KB
  • scripts/exporters/__init__.py 1 KB
  • scripts/exporters/html_exporter.py 16 KB
  • scripts/exporters/md_exporter.py 9 KB

Wersje

W bazie nie ma innych skilli o nazwie wechat-official-batch-download.

Migawka bazy z 28.10.2026 · wersja paczki 71ef67ee3ada (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100wx2md
    Zapisuje artykuły z WeChat jako pliki Markdown z metadanymi i lokalnymi obrazami, do archiwum i notatek osobistych.
  • 90wechat-mp-writer
    Zamienia repozytoria GitHub, adresy URL, materiały produktowe lub szkice w artykuły dla konta WeChat Official Account i wysyła je do skrzynki wersji roboczych.
  • 100wechat-official-account
    Generuje artykuły, zarządza szkicami, publikuje, wysyła wiadomości obsługi klienta, zarządza menu i pobiera statystyki konta WeChat Official Account przez serwerowe API WeChat MP.
  • 100wechat-scraper
    Pobiera i archiwizuje publiczny artykuł WeChat, parsując HTML, a w razie potrzeby renderując go w przeglądarce, i listuje najnowsze teksty.
  • 95wechat-article
    Pisze, formatuje i publikuje artykuły na WeChat Official Account do szkicu, z bramkami jakości i okładką.
  • 100wechat-article-compose
    Pisze długi artykuł na WeChat Official Account z zatwierdzonego tematu, z kontrolą zgodności przed podglądem.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.