Xpersona
W

Wechat Article Export

CLAWHUB · Unverified

Export WeChat public account articles as mobile long screenshots (PNG), PDFs, or high-quality Markdown with YAML frontmatter and code block support. Skill: Wechat Article Export Owner: benzking Summary: Export WeChat public account articles as mobile long screenshots (PNG), PDFs, or high-quality Markdown with YAML frontmatter and code block support. Tags: export:1.0.1, latest:1.1.0, markdown:1.0.1, pdf:1.0.1, screenshot:1.0.1, wechat:1.0.1 Version history: v1.1.0 | 2026-04-11T05:13:54.253Z | user Fix temp link support and banner removal v1.0.1 | 2026-04-10T11:38:

62
Rank
84
Safety
984
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 984 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 s17eytpmak0fh78xhm4nyk35hh841jw4:wechat-article-export
  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-benzking-wechat-article-export/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

13,364 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: wechat-article-export
description: 微信公众号多功能导出工具。將公眾號文章導出為長截圖(PNG)、PDF 或 Markdown,支持任選一種或多種格式。觸發詞:「導出微信文章」、「公眾號截圖」、「文章轉PDF」、「文章轉Markdown」、「微信導出」。
author: 闪电 ⚡️
allowed-tools: Read, Write  # 僅執行 Python 腳本,無 shell 命令
version: "1.1.0"
tags:
  - wechat
  - 微信
  - 公众号
  - 导出
  - 截图
  - PDF
  - Markdown
  - mp.weixin.qq.com
allowed-tools: Read, Write  # 僅執行 Python 腳本,無 shell 命令
---

# 微信公众号多功能导出工具

集成長截圖、PDF、Markdown 三種導出方式於一體,根據需要自由選擇。

## upported Formats 支持格式

| 格式 | 說明 |
|------|------|
| `screenshot` | 移動端長截圖(PNG),3x DPR,自動拼接,隱藏底部工具欄 |
| `pdf` | PDF 文檔(基於截圖轉換) |
| `markdown` | 高質量 Markdown,含 YAML frontmatter、代碼塊、圖片 |

## 觸發方式

- 「導出微信文章」
- 「公眾號截圖」
- 「文章轉PDF」
- 「文章轉Markdown」
- 「微信導出」
- 收到 `mp.weixin.qq.com` 連結

## 導出格式組合示例

```
# 全部格式
-f all

# 僅截圖
-f screenshot

# 僅 Markdown
-f markdown

# 截圖 + PDF
-f screenshot,pdf

# 三種都要
-f screenshot,pdf,markdown
```

## 執行命令

### 方式一:CLI(直接指定格式)

```bash
# 全部導出
python3 /path/to/wechat_export.py "<URL>" -f all -o /workspace/output

# 指定格式導出
python3 /path/to/wechat_export.py "<URL>" -f screenshot -o /workspace/output
python3 /path/to/wechat_export.py "<URL>" -f markdown -o /workspace/output
python3 /path/to/wechat_export.py "<URL>" -f screenshot,pdf -o /workspace/output

# Markdown 不下載圖片(保留遠程 URL)
python3 /path/to/wechat_export.py "<URL>" -f markdown --no-images -o /workspace/output

# Markdown 不含 YAML frontmatter
python3 /path/to/wechat_export.py "<URL>" -f markdown --no-frontmatter -o /workspace/output
```

### 方式二:Python 函數調用(推薦 Agent 內嵌使用)

```python
import sys
sys.path.insert(0, "/path/to/scripts")
from wechat_export import export_wechat_article

# 導出全部格式
result = await export_wechat_article(
    "https://mp.weixin.qq.com/s/xxxxx",
    formats=["screenshot", "pdf", "markdown"],  # 可任選
    output_dir="/workspace/output",
    download_imgs=True,    # Markdown 是否下載圖片
    no_frontmatter=False,   # Markdown 是否含 frontmatter
)

# result 包含:
# {
#     "title": "文章標題",
#     "url": "https://...",
#     "screenshot_path": "/path/to/xxx.png",   # or None
#     "pdf_path": "/path/to/xxx.pdf",          # or None
#     "markdown_path": "/path/to/xxx.md",     # or None
#     "error": None or "錯誤信息",
# }
```

## 依賴

```bash
pip install playwright beautifulsoup4 markdownify requests Pillow
playwright install chromium
```

## 輸出目錄結構

```
<OUTPUT_DIR>/
└── <Article_Title>/
    ├── <Article_Title>-20260410.png    # 長截圖(如選)
    ├── <Article_Title>-20260410.pdf    # PDF(如選)
    └── <Article_Title>.md              # Markdown(如選)
        └── images/
            ├── img_000.png
            └── img_001.jpg
```

## 核心功能亮點

### 長截圖 (`screenshot`)
- 移動端視圖(393×852,3x DPR)
- 智能滾動觸發懶加載圖片
- 隱藏底部工具欄、干擾元素
- 15% 重疊拼接,消除接縫
- 深度反檢測偽裝

### PDF (`pdf`)
- 自動基於截圖轉換
- RGBA / P 模式自動墊白底
- 分辨率 100 DPI

### Markdown (`markdown`)
- YAML frontmatter(元數據)
- 30+ 微信噪聲元素深度移除
- 代碼塊識別 25+ 語言
- 富文本優化(標題/列表/引用)
- 圖片可選本地下載或保留遠程 URL
- 多線程並發下載(5 線程,2 次重試)

---

## Changelog

### v1.1.0 (2026-04-11)

**修复:**
- 修复 URL 验证逻辑:`/s/` → `parsed.path.startswith("/s

_meta.json

{
  "ownerId": "kn76gbs7y2dpv0sdyk8akq3jrd82tk71",
  "slug": "wechat-article-export",
  "version": "1.1.0",
  "publishedAt": 1775884434253
}

skill-card.md

## Description:

Export WeChat public account articles as mobile long screenshots (PNG), PDFs, or high-quality Markdown with YAML frontmatter and code block support.

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

## Publisher:

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

### License/Terms of Use:

MIT-0

## Use Case:

External users, developers, and content operations teams use this skill to export WeChat public-account article URLs into portable PNG, PDF, or Markdown files for archiving, review, or reuse.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill processes remote WeChat article content and can fetch associated images.

Mitigation: Run it in a sandboxed or containerized environment with restricted network egress, and use --no-images unless local image copies are needed.

Risk: The security summary flags disabled browser sandboxing.

Mitigation: Avoid privileged host execution and isolate the browser process with container, VM, or dedicated user boundaries.

Risk: The security summary flags weak dependency controls.

Mitigation: Pin and review Python dependencies before production or shared-environment use.

Risk: Exported files may contain untrusted or sensitive article content.

Mitigation: Review generated PNG, PDF, and Markdown outputs before sharing or publishing them.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/benzking/skills/wechat-article-export)

## Skill Output:

**Output Type(s):** [Files, Markdown, Code]

**Output Format:** [PNG screenshots, PDF documents, Markdown files, and a JSON-like result object with output paths]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Markdown output may include YAML frontmatter and optional local image copies; screenshot and PDF outputs are written under an article-specific output directory.]

## Skill Version(s):

1.1.0 (source: server release evidence and frontmatter)

## 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.

Sponsored

Ads related to Wechat Article Export and adjacent AI workflows.