← Back to Skills Marketplace
123
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install aga-wechat-article-fetcher
Description
微信公众号文章抓取工具。当用户发送微信文章链接、需要保存公众号文章、 想要离线阅读微信文章、提取微信文章内容、下载微信文章图片时自动触发。 支持 mp.weixin.qq.com 域名的所有文章链接。
README (SKILL.md)
wechat-article-fetcher
微信公众号文章抓取工具 - 一键保存文章为本地HTML
触发条件
当用户发送微信公众号文章链接时自动触发:
https://mp.weixin.qq.com/s/xxxxxhttps://mp.weixin.qq.com/s?__biz=xxxxx
使用示例
用户输入:
https://mp.weixin.qq.com/s/C7xUcSWVXLYfexbFIeI8Jw
助手执行:
./fetch.sh https://mp.weixin.qq.com/s/C7xUcSWVXLYfexbFIeI8Jw
助手回复:
✅ 文章抓取完成!
标题:LibTV 上线,首个同时面向人与 Agent 的专业视频创作平台
文件名:2026-03-21_LibTV_Agent.html
图片:10张已下载
视频封面:2张已下载
访问地址:http://localhost:8080/2026-03-21_LibTV_Agent.html
功能说明
自动命名
文件名格式:{日期}_{英文关键词}.html
- 从标题提取英文单词(如 LibTV, Agent, OpenClaw)
- 无英文时提取数字
- 兜底使用URL短码
图片处理
- 自动下载文章内所有图片
- 保存到
images/目录 - 替换HTML中的远程URL为本地路径
视频处理
- 下载视频封面图到
video_covers/目录 - 点击封面跳转到原文查看视频
- (微信视频有防盗链,无法直接嵌入或下载)
文件结构
workspace/
├── skills/wechat-article-fetcher/
│ ├── fetch.sh # 主脚本
│ ├── fetch.py # Python核心
│ ├── SKILL.md # 本文件
│ └── README.md # 说明文档
├── images/ # 文章图片(自动创建)
├── video_covers/ # 视频封面(自动创建)
└── 2026-03-21_xxx.html # 生成的文章HTML
手动启动服务器
如果8080端口被占用:
# 指定端口
./skills/wechat-article-fetcher/fetch.sh URL 8888
# 或手动启动
cd /root/.openclaw/workspace && python3 -m http.server 8080
注意事项
- 首次使用会自动创建
images/和video_covers/目录 - 重复抓取同一文章会复用已下载的图片
- 视频封面图命名格式:
{文件名}_cover_{序号}.jpg
故障排查
问题:图片显示不出来
- 检查
images/目录是否存在 - 确认HTTP服务器已启动
问题:视频封面无法显示
- 微信图片有防盗链,已下载到本地
video_covers/ - 检查文件是否存在
问题:文件名是日期+数字
- 文章标题中没有英文单词
- 属于正常情况
更新日志
v1.0.0
- 初始版本
- 支持文章抓取、图片下载、视频封面提取
- 自动命名(日期+英文关键词)
Usage Guidance
This skill appears to implement the advertised WeChat article saving functionality, but review before installing: 1) Code writes files into /root/.openclaw/workspace (hardcoded) — check/adjust the path if you won't run the agent as root. 2) The script will fetch every embedded image/video-cover URL it finds; that means it will make outbound HTTP requests to hosts referenced in the article — avoid running it on untrusted articles if you want to prevent SSRF or unexpected network access. 3) It spawns a local HTTP server (python -m http.server) on port 8080 by default — ensure this is acceptable for your environment. 4) The script uses input() to prompt if the URL isn't clearly a mp.weixin.qq.com link, which may block automated execution. Recommended actions: inspect the fetch.py/fetch.sh code yourself (or run in an isolated sandbox/container), run with limited network access if concerned, and/or change the workspace path to a user-owned directory before use.
Capability Analysis
Type: OpenClaw Skill
Name: aga-wechat-article-fetcher
Version: 1.0.0
The skill bundle functions as a WeChat article scraper but contains risky behaviors, specifically the automatic background execution of a Python HTTP server in 'fetch.sh'. This server is launched in the '/root/.openclaw/workspace' directory, which could potentially expose other sensitive files within the agent's workspace to the local network. While this capability is documented in 'SKILL.md' and 'README.md' as a feature for local previewing, the lack of access control and the background persistence make it a security risk, though no clear evidence of intentional malice or data exfiltration was found in 'fetch.py'.
Capability Assessment
Purpose & Capability
Name/description align with behavior: the code fetches mp.weixin.qq.com articles, extracts title/content, downloads images and video covers, and writes an HTML file for local preview. Required capabilities (network access, writing files) match the stated purpose.
Instruction Scope
SKILL.md instructs running fetch.sh/fetch.py which is consistent with the files. Implementation details include a few notable points: (1) fetch.py downloads every image URL found in the article HTML (expected for image saving), but that means the agent will make arbitrary outbound HTTP requests for embedded URLs — this could fetch content from arbitrary hosts if embedded URLs are malicious; (2) the Python script prompts via input() when the URL doesn't start with the expected domain, which may block automated agent runs; (3) file paths used in code are absolute (/root/.openclaw/workspace) while the documentation sometimes references ~/.openclaw/workspace or relative workspace/, so there is inconsistency about where files are stored.
Install Mechanism
No install spec; this is an instruction+script skill. It relies on Python and the 'requests' package as documented. Nothing is downloaded from obscure URLs or executed from remote archives during install.
Credentials
The skill requests no environment variables or credentials, which is appropriate. However, it writes into an absolute path (/root/.openclaw/workspace) and spawns an HTTP server (python -m http.server) on a user-specified port (default 8080). The hardcoded root path is inconsistent with some docs and could fail or behave unexpectedly depending on the agent's runtime user privileges.
Persistence & Privilege
The skill is not 'always:true' and does not request special platform privileges. It runs as a normal skill, writes files in a workspace directory, and may start a local HTTP server for preview — these are reasonable for its purpose and confined to the skill's own workspace.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install aga-wechat-article-fetcher - After installation, invoke the skill by name or use
/aga-wechat-article-fetcher - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
wechat-article-fetcher v1.0.0
- 初始版本发布
- 支持自动抓取微信公众号文章内容
- 下载并本地保存文章内图片和视频封面
- 文件自动命名为日期+英文关键词
- 支持自动替换图片链接及视频封面本地化
- 包含常见问题排查和使用说明
Metadata
Frequently Asked Questions
What is wechat-article-fetcher?
微信公众号文章抓取工具。当用户发送微信文章链接、需要保存公众号文章、 想要离线阅读微信文章、提取微信文章内容、下载微信文章图片时自动触发。 支持 mp.weixin.qq.com 域名的所有文章链接。 It is an AI Agent Skill for Claude Code / OpenClaw, with 123 downloads so far.
How do I install wechat-article-fetcher?
Run "/install aga-wechat-article-fetcher" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is wechat-article-fetcher free?
Yes, wechat-article-fetcher is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does wechat-article-fetcher support?
wechat-article-fetcher is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created wechat-article-fetcher?
It is built and maintained by aga-j (@aga-j); the current version is v1.0.0.
More Skills