Skip to content
Back to skills

Wechat Article Spider

ASecurity

微信公众号文章爬虫 - 将微信公号文章转换为 Markdown + 本地图片

  • 33 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 5, 2026
content-marketingpythonbash

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 5 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add dvcrn/openclaw-skills-marketplace --skill wechat-article-spider --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Wechat Article Spider?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Wechat Article Spider
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dvcrn-wechat-article-spider/badge)](https://www.skillsdirectory.com/skills/dvcrn-wechat-article-spider)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: wechat-article-spider
description: "微信公众号文章爬虫 - 将微信公号文章转换为 Markdown + 本地图片"
---

# wechat-article-spider

微信公众号文章爬虫 - 将微信公号文章转换为 Markdown + 本地图片

## 执行指令

```bash
cd scripts && pip install -r requirements.txt && python main.py
```

## 功能

- ✅ 输入微信公号文章 URL
- ✅ 自动抓取文章内容
- ✅ 下载所有图片到 `images/` 文件夹
- ✅ 生成 Markdown 文件,图片使用相对路径引用

## 安装

```bash
cd wechat-article-dl/scripts
pip install -r requirements.txt
```

## 用法

### 命令行

```bash
python main.py <文章 URL> [输出目录]
```

### 示例

```bash
# 下载到当前目录
python main.py https://mp.weixin.qq.com/s/xxxxx

# 指定输出目录
python main.py https://mp.weixin.qq.com/s/xxxxx ./my-articles
```

### 输出结构

```
output/
├── 文章标题.md
└── images/
    ├── img_001_xxx.jpg
    ├── img_002_xxx.png
    └── ...
```

## 注意事项

- 微信文章可能有反爬机制,如遇失败可稍后重试
- 部分动态加载的图片可能无法获取
- 图片文件名使用哈希值避免重复

## 依赖

- requests
- beautifulsoup4
- lxml

Files in this skill

  • SKILL.md1.2 KB
  • scripts/images.py2.7 KB
  • scripts/main.py3.1 KB
  • scripts/requirements.txt52 B
  • scripts/scraper.py5.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in content-marketing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.