Xpersona
W

Wechat Fetch Publish

CLAWHUB · Unverified

微信公众号文章抓取工具 v3.0 - Lite轻量版 + Playwright版,支持免登录、批量抓取、图片下载、多格式输出 Skill: Wechat Fetch Publish Owner: jackyfan01 Summary: 微信公众号文章抓取工具 v3.0 - Lite轻量版 + Playwright版,支持免登录、批量抓取、图片下载、多格式输出 Tags: article:1.0.0, fetch:1.0.0, latest:3.0.0, playwright:1.0.0, wechat:1.0.0 Version history: v3.0.0 | 2026-03-27T08:46:41.364Z | user Major release: Adds Lite版、免登录模式、批量/图片下载、多格式输出,优化结构。 - Lite版、Playwright版双实现,适合不同环境和需求 - 支持免登录公开抓取及批量下载 - 自动文章图片下载、本地存储 - 输出格式支持 Markdown/HTML/JSON/TXT - 删除旧代码,精简依赖,取消

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s178eexwn07y6a7yh97tfms3v183gajm:wechat-fetch
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-jackyfan01-wechat-fetch/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

40,977 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: wechat-fetch
description: 微信公众号文章抓取工具 v3.0 - Lite轻量版 + Playwright版,支持免登录、批量抓取、图片下载、多格式输出
version: "3.0.0"
author: jackyfan01
keywords:
  - "微信文章抓取"
  - "微信公众号"
  - "批量抓取"
  - "免登录"
  - "图片下载"
triggers:
  - "抓取微信文章"
  - "批量下载公众号"
  - "微信文章 v3"
---

# WeChat Fetch v3.0 - 微信文章抓取工具

微信公众号文章抓取工具 v3.0,在 v2.0 基础上新增:**免登录模式**、**批量抓取**、**图片下载**、**多格式输出**。

## 新增特性 (v3.0)

| 特性 | 说明 |
|------|------|
| ✅ **免登录模式** | 无需扫码登录,直接抓取公开文章 |
| ✅ **批量抓取** | 支持从文件读取多个 URL 批量下载 |
| ✅ **图片下载** | 自动下载文章图片到本地 |
| ✅ **多格式输出** | Markdown/HTML/JSON/TXT 四种格式 |

## 使用方法

### 版本选择

| 版本 | 适用场景 | 资源需求 | 批量抓取 |
|------|----------|----------|----------|
| **Lite 版** | 快速抓取、低内存环境 | 低(无需浏览器)| ✅ 支持 |
| **Playwright 版** | 需要 Cookie 登录、复杂页面 | 高(需 Chromium)| ✅ 支持 |

### 1. Lite 版(推荐)

```bash
# 基本用法
python3 scripts/wechat_fetch_lite.py "https://mp.weixin.qq.com/s/xxxxx"

# 指定输出格式
python3 scripts/wechat_fetch_lite.py "https://mp.weixin.qq.com/s/xxxxx" \
  --format html --output article.html

# 下载图片
python3 scripts/wechat_fetch_lite.py "https://mp.weixin.qq.com/s/xxxxx" \
  --download-images --output article.md

# 批量抓取
python3 scripts/wechat_fetch_lite.py --batch urls.txt --output ./articles \
  --format markdown --delay 3
```

### 2. Playwright 版(需 Cookie 登录时)

```bash
# 免登录模式
python3 scripts/wechat_fetch_v3.py "https://mp.weixin.qq.com/s/xxxxx" --no-login

# Cookie 模式(需预先登录)
python3 scripts/wechat_fetch_v3.py "https://mp.weixin.qq.com/s/xxxxx"

# 批量抓取(带重试)
python3 scripts/wechat_fetch_v3.py --batch urls.txt --output ./articles \
  --no-login --max-retries 3 --retry-delay 5
```

### 2. 批量抓取

```bash
# 创建 URL 列表文件 urls.txt
echo "https://mp.weixin.qq.com/s/xxx1" > urls.txt
echo "https://mp.weixin.qq.com/s/xxx2" >> urls.txt
echo "https://mp.weixin.qq.com/s/xxx3" >> urls.txt

# 批量抓取
python3 scripts/wechat_fetch_v3.py --batch urls.txt --output ./articles \
  --no-login --download-images --format markdown
```

### 3. Python API

**Lite 版(推荐):**
```python
from scripts.wechat_fetch_lite import WeChatFetcherLite

fetcher = WeChatFetcherLite()

# 单篇抓取
result = fetcher.fetch_single(
    url="https://mp.weixin.qq.com/s/xxxxx",
    download_images=True,
    output_format="markdown"
)
```

**Playwright 版:**
```python
from scripts.wechat_fetch_v3 import WeChatFetcher

fetcher = WeChatFetcher()

# 单篇抓取
result = fetcher.fetch_single(
    url="https://mp.weixin.qq.com/s/xxxxx",
    no_login=True,
    download_images=True,
    output_format="markdown"
)

# 批量抓取
results = fetcher.fetch_batch(
    urls=["url1", "url2", "url3"],
    output_dir="./articles",
    no_login=True,
    download_images=True,
    output_format="json"
)
```

## 参数说明

### Lite 版参数

| 参数 | 说明 | 默认值 |
|------|------|--------|
| `url` | 微信文章 URL | - |
| `-o, --output` | 输出文件路径 | - |
| `--batch` | 批量抓取文件(每行一个URL) | - |
| `--download-images` | 下载图片到本地 | False |
| `--format` | 输出格式 (markdown/html/json/txt) | markdown |
| `--timeout` | 超时时间(秒) | 30 |
| `--delay` | 请求间隔(秒) | 2 |

### Playwright 版参数

| 参数 | 说明 | 默认值 |
|------|------

README.md

# WeChat Fetch v3.0

微信公众号文章抓取工具 v3.0,在 v2.0 基础上新增:**Lite 轻量版**、**免登录模式**、**批量抓取**、**图片下载**、**多格式输出**。

## 快速开始

### Lite 版(推荐,低资源)

```bash
# 安装依赖
pip install beautifulsoup4 requests

# 单篇抓取
python3 scripts/wechat_fetch_lite.py "https://mp.weixin.qq.com/s/xxxxx"

# 指定格式
python3 scripts/wechat_fetch_lite.py "https://mp.weixin.qq.com/s/xxxxx" --format json

# 批量抓取
python3 scripts/wechat_fetch_lite.py --batch urls.txt --output ./articles --delay 3
```

### Playwright 版(需浏览器)

```bash
# 安装依赖
pip install playwright beautifulsoup4 requests
playwright install chromium

# 单篇抓取(免登录模式)
python3 scripts/wechat_fetch_v3.py "https://mp.weixin.qq.com/s/xxxxx" --no-login

# 批量抓取(带重试)
python3 scripts/wechat_fetch_v3.py --batch urls.txt --output ./articles \
  --no-login --max-retries 3 --retry-delay 5
```

## 特性

- ✅ **Lite 轻量版** - 无需浏览器,低资源消耗
- ✅ **免登录模式** - 无需扫码,直接抓取
- ✅ **批量抓取** - 支持多 URL 批量下载(双版本)
- ✅ **图片下载** - 自动下载文章图片
- ✅ **多格式输出** - Markdown/HTML/JSON/TXT
- ✅ **重试机制** - Playwright 版支持自动重试

## 版本选择

| 版本 | 适用场景 | 资源需求 | 批量抓取 |
|------|----------|----------|----------|
| **Lite** | 快速抓取、低内存环境 | 低 | ✅ |
| **Playwright** | 需要 Cookie、复杂页面 | 高 | ✅ |

## 详细文档

见 [SKILL.md](SKILL.md)

## 许可证

MIT-0

_meta.json

{
  "ownerId": "kn700q1nnswk23t0fbp65p0kh1821kk1",
  "slug": "wechat-fetch",
  "version": "3.0.0",
  "publishedAt": 1774601201364
}

skill-card.md

## Description:

Fetches WeChat public-account articles with Lite and Playwright modes, including no-login public fetching, batch downloads, image downloads, and Markdown, HTML, JSON, or text output.

This skill is ready for commercial/non-commercial use.

## Publisher:

[jackyfan01](https://clawhub.ai/user/jackyfan01)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and operators use this skill to fetch one or many WeChat article URLs, save article content and images locally, and choose an output format suitable for reading, archiving, or downstream processing.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can fetch arbitrary URLs and download many images.

Mitigation: Use trusted mp.weixin.qq.com URLs, prefer Lite mode when possible, and run with limited network and filesystem access.

Risk: The Playwright mode may store and reuse browser cookies and runs Chromium with weakened security settings.

Mitigation: Use a contained browser profile or sandboxed environment, avoid sensitive accounts, and review whether Cookie mode is necessary before use.

Risk: Generated HTML can contain content from fetched pages.

Mitigation: Avoid opening generated HTML from untrusted pages outside a contained or disposable browser environment.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/jackyfan01/skills/wechat-fetch)
- [README.md](artifact/README.md)
- [SKILL.md](artifact/SKILL.md)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]

**Output Format:** [Markdown guidance with Python and shell command examples; generated article files may be Markdown, HTML, JSON, or text.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May write article files, downloaded images, and batch reports to local output directories.]

## Skill Version(s):

3.0.0 (source: frontmatter, skill.yaml, server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

skill.yaml

name: wechat-fetch
description: 微信公众号文章抓取工具 v3.0 - Lite轻量版 + Playwright版,支持免登录、批量抓取、图片下载、多格式输出
version: 3.0.0
author: jackyfan01 (optimized by xiaoming)
entry:
  lite: scripts/wechat_fetch_lite.py
  playwright: scripts/wechat_fetch_v3.py
dependencies:
  required:
    - beautifulsoup4
    - requests
  optional:
    - playwright
config:
  default_output_dir: ~/openclaw/workspace/articles
  headless: true
  timeout: 30
  supported_formats:
    - markdown
    - html
    - json
    - txt
features:
  - lite_version
  - no_login_mode
  - batch_fetch
  - image_download
  - multi_format_output

Sponsored

Ads related to Wechat Fetch Publish and adjacent AI workflows.