Install
openclaw skills install wechat-articles-skill抓取微信公众号文章并转换为Markdown格式。当用户提供微信文章链接(mp.weixin.qq.com)或要求抓取/保存/下载公众号文章时触发。
openclaw skills install wechat-articles-skill抓取微信公众号文章,提取标题、作者、公众号名称、正文内容和图片,转换为干净的Markdown格式保存。
用户提供微信文章链接,例如:
https://mp.weixin.qq.com/s/xxxxxhttps://mp.weixin.qq.com/s?__biz=xxx&mid=xxx&idx=1&sn=xxx微信文章页面的关键元素:
标题: #activity-name
作者: #js_name (公众号名称)
正文: #js_content
发布时间: #publish_time
python3 ~/.nvm/versions/node/v24.14.0/lib/node_modules/openclaw/skills/wechat-articles/scripts/fetch_article.py "<URL>" [--output <目录>]
脚本会:
<标题>.md生成的Markdown文件结构:
---
title: 文章标题
author: 公众号名称
url: https://mp.weixin.qq.com/s/xxxxx
fetched: 2024-01-15T10:30:00Z
---
# 文章标题
> 作者:公众号名称
正文内容...
[图片说明](images/xxx.jpg)
images/ 子文件夹--no-images 参数跳过图片下载