Skills Plugins MCP Prompt Model 导航 博客 资讯 我的中心

dsh-wechat-article-fetcher

DeepSeek Harness (DSH) plugin: complete WeChat Official Account article downloader — wechat_article_fetch tool plus a zero-dependency anti-bot fetcher CLI (title/time/author/content with text-images-videos-links, read/like/wow stats and comments with a lo

birdmanhj @birdmanhj ⬇ 1 ★ 0 main

安装

dsh plugin --profile web add github:birdmanhj/dsh-wechat-article-fetcher
下载安装清单

需要可复现安装时,可在仓库后追加 #commit 固定提交。

DeepSeek Harness (DSH) plugin: complete WeChat Official Account article downloader — wechat_article_fetch tool plus a zero-dependency anti-bot fetcher CLI (title/time/author/content with text-images-videos-links, read/like/wow stats and comments with a lo

该插件未提供要点说明,请参考仓库 README。

  1. 安装并启动 DeepSeek Harness:npx @deepseek-ai/dsh web
  2. 在终端执行上面的安装命令(CLI 会解析插件并核验来源)
  3. 用 dsh plugins list 确认已安装,必要时重启 Harness 生效

插件以当前 dsh 进程的权限运行,安装时可能执行代码。请先通读仓库源码与许可证,确认无破坏性命令与越权访问;本站只做索引,不对第三方插件安全性作担保。

代码仓库github.com/birdmanhj/dsh-wechat-article-fetcher
许可证未标注(见仓库)
主要语言main
下载量1
GitHub 星标0
最近推送2026-08-25
收录日期2026-09-19
分类工具与能力

事实信息来自公开插件目录快照(2026-10-01),介绍文案由本站再加工。

以下为插件仓库 README 全文(原始内容,由公开目录抓取整理)。

# DSH WeChat Article Fetcher

English | [中文](README.zh.md)

[![npm](https://img.shields.io/npm/v/dsh-wechat-article-fetcher)](https://www.npmjs.com/package/dsh-wechat-article-fetcher)
[![GitHub](https://img.shields.io/badge/GitHub-birdmanhj%2Fdsh--wechat--article--fetcher-181717?logo=github)](https://github.com/birdmanhj/dsh-wechat-article-fetcher)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

Input a WeChat Official Account (公众号) article URL, get the complete article out: title, time,
author, read/like/wow stats, content (text / image / video / link blocks), and comments — with
anti-bot protection. Works as a DSH plugin and as a zero-dependency standalone CLI.

> Package docs (install, tool parameters, CLI flags, anti-bot details):
> [`dsh-wechat-article-fetcher/README.md`](dsh-wechat-article-fetcher/README.md)

## Repository layout

```
DSH-wechat-article-fetcher/
├── dsh-wechat-article-fetcher/   # ✅ npm plugin package (dsh plugin add / import into other projects)
│   ├── package.json                 # dsh.bundle.patch -> cordis.patch.yml
│   ├── cordis.patch.yml             # inserts one host row (id: wechat-article-fetcher)
│   ├── lib/index.js                 # cordis plugin: registers the wechat_article_fetcher tool
│   ├── lib/fetch_wechat_article.cjs # zero-dependency anti-bot fetcher CLI (core, Node>=18)
│   └── README.md / README.zh.md / README.i18n.yaml
├── wechat_articles/                 # default output root (<公众号>/<日期>_<标题>/)
├── probe/                           # anti-bot probe samples (deletable)
├── test_out/                        # early test output (deletable)
└── HANDOFF.md                       # all verified findings and handoff notes
```

## Quick start

### Option 1: DSH plugin (recommended)

```sh
dsh plugin --profile web add dsh-wechat-article-fetcher
```

Then add `dsh-wechat-article-fetcher` to the `dsh.profile.bundles` list in
`~/.dsh/profiles/web/package.json` and restart `dsh web`. Afterwards, call the
`wechat_article_fetcher` tool in any session (`url` required;
`cookie`/`download_images`/`save_files`/`out_dir`/`max_retries` optional).

### Option 2: standalone CLI (no DSH)

```sh
node dsh-wechat-article-fetcher/lib/fetch_wechat_article.cjs "https://mp.weixin.qq.com/s/xxxx" \
  [--cookie ""] [--no-images] [--out ] [--json] [--max-retries 3]
```

stdout prints the full JSON; save mode writes `article.md` / `article.html` / `meta.json` /
`images/`.

## Capabilities & limits (all verified in practice)

| Field | Anonymous | Login cookie |
|---|---|---|
| Title / author / account / publish time / digest / cover | ✅ | ✅ |
| Body (text · image · video · link structured blocks) | ✅ | ✅ |
| Image download, album & tags | ✅ | ✅ |
| Read / like / wow counts | ❌ WeChat hides them | ✅ |
| Comments (with replies) | ❌ `no session` | ✅ |

- The ❌ rows are WeChat platform restrictions (`getappmsgext` / `appmsg_comment` reject
  anonymous access). Unlock them with the `cookie` parameter — it must be the article-page
  login state (contains `wxuin=` and `key=`); an mp-admin cookie does not work (verified).
- Anti-bot: UA pool rotation, exponential backoff retries, verification-page
  (`环境异常`/captcha) detection, concurrent image downloads with Referer.
- Verified: modern article (title/nickname/time/body/5 images all correct), 2020 legacy article
  (17 images/cover/time), deleted article (`article_unavailable` detection), markdown/html/meta
  export with correct relative image paths, video parsing (mock-verified vid/player extraction
  and mixed-block ordering).
- Positioning: **article content first**; likes/comments are an optional enhancement (login
  cookie acquisition is costly — opt-in only).

## Session/workspace migration record

- This workspace was migrated from `DSH_wchat_article_downloader` to the current path via
  `mv_session`; `mv_session verify` reports **CONSISTENT** (session header cwd, sessions dir,
  workspace registry, zstd frames, projection cache all aligned).
- After installing/migrating, restart `dsh web` once; afterwards re-check with
  `mv_session { verify: true }`.

## Plugin marketplace survey (2026-08; no need to re-search)

No existing plugin is a complete downloader: `dsh-wechat-mp` (markdown typesetting),
`dsh-wechat-mp-studio` (content production), and `dsh-deepread` (reading analysis) all miss
likes/comments/videos or full original content. The community `wechat-article-fetcher` Skill
(Python) lacks likes/comments/videos. Therefore this plugin was built from scratch, borrowing
its anti-bot ideas (mobile UA, `data-src`, short-link preference).

数据来源:公开的 DeepSeek Harness 插件目录与各插件 GitHub 仓库。本站为独立第三方目录,与 DeepSeek、幻方(High-Flyer)及插件作者均无隶属或背书关系。

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。