下载技能包
License
MIT-0
运行时依赖
无特殊依赖
安装命令
点击复制官方npx clawhub@latest install wechat-article-spider
镜像加速npx clawhub@latest install wechat-article-spider --registry https://cn.longxiaskill.com镜像同步中
本土化适配说明
微信公众号文章爬虫 安装说明: 安装命令:["openclaw skills install wechat-article-spider"] 该技能用于微信、公众号相关操作,可能需要相应的平台账号或API密钥
技能文档
wechat-article-spider
微信公众号文章爬虫 - 将微信公号文章转换为 Markdown + 本地图片
执行指令 cd scripts && pip 安装 -r requirements.txt && python mAIn.py
功能 ✅ 输入微信公号文章 URL ✅ 自动抓取文章内容 ✅ 下载所有图片到 images/ 文件夹 ✅ 生成 Markdown 文件,图片使用相对路径引用 安装 cd wechat-article-dl/scripts pip 安装 -r requirements.txt
用法 命令行 python mAIn.py <文章 URL> [输出目录]
示例 # 下载到当前目录 python mAIn.py https://mp.weixin.qq.com/s/xxxxx
# 指定输出目录 python mAIn.py https://mp.weixin.qq.com/s/xxxxx ./my-articles
输出结构 输出/ ├── 文章标题.md └── images/ ├── img_001_xxx.jpg ├── img_002_xxx.png └── ...
注意事项 微信文章可能有反爬机制,如遇失败可稍后重试 部分动态加载的图片可能无法获取 图片文件名使用哈希值避免重复 依赖 请求s beautifulsoup4 lxml