8421bit/wechat-article-reader/SKILL.md
将微信公众号文章导出为 Markdown 格式。当用户提供微信公众号链接 (mp.weixin.qq.com) 或要求下载/导出/保存微信文章时触发。默认保存到工作空间的 source 目录。
npx skillsauth add openclaw/skills WeChat-article-readerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
当以下情况时触发此技能:
触发示例:
此技能使用 Python 脚本执行以下操作:
#js_content div 提取正文内容基础目录:~/.npm-global/lib/node_modules/openclaw/skills/WeChat-article-reader
脚本位置:scripts/export.py
python3 -c "import requests, bs4, markdownify" 2>/dev/null || echo "需要安装依赖"
pip3 install requests beautifulsoup4 lxml markdownify
此技能开箱即用,无需 API Key 或额外配置。使用带浏览器头部的 HTTP 请求来获取微信文章。
当此技能被触发时,按以下步骤执行:
从用户请求中识别微信文章 URL。有效 URL 以以下开头:
https://mp.weixin.qq.com/s/https://mp.weixin.qq.com/...默认输出目录:~/.openclaw/workspace-qiming/source
用户可以指定自定义输出目录。
# 如需要则创建输出目录
mkdir -p "$OUTPUT_DIR"
# 运行导出脚本
python3 ~/.npm-global/lib/node_modules/openclaw/skills/WeChat-article-reader/scripts/export.py "$URL" "$OUTPUT_DIR"
告知用户:
# 基本导出
python3 ~/.npm-global/lib/node_modules/openclaw/skills/WeChat-article-reader/scripts/export.py "https://mp.weixin.qq.com/s/xxx" ~/.openclaw/workspace-qiming/source
# 指定自定义输出目录
python3 ~/.npm-global/lib/node_modules/openclaw/skills/WeChat-article-reader/scripts/export.py "$URL" "/path/to/output"
导出的 Markdown 文件包含:
---
title: 文章标题
author: 作者名称
publish_time: 发布时间
source_url: 原文链接
exported_at: 导出时间戳
description: 文章描述
---
# 文章标题
> 原文链接: URL
**作者**: XXX
**发布时间**: XXX
-----
文章正文内容...
生成的文件遵循格式:YYYYMMDD_HHMMSS_文章标题.md
标题中的特殊字符会被清理以确保文件系统兼容性。
| 问题 | 原因 | 解决方案 | |------|------|----------| | "无法找到文章正文内容" | 文章需要登录或已被删除 | 尝试在浏览器中打开,或使用浏览器工具 | | 连接超时 | 网络问题或限流 | 等待后重试,检查网络连接 | | 编码问题 | 特殊字符 | 脚本自动处理 UTF-8 |
| 包名 | 版本 | 用途 | |------|------|------| | requests | >=2.31.0 | HTTP 请求 | | beautifulsoup4 | >=4.12.0 | HTML 解析 | | lxml | >=4.9.0 | XML/HTML 解析器 | | markdownify | >=0.11.6 | HTML 转 Markdown |
脚本会:
基于 wechat-article-export 项目:
MIT License
tools
Use when the user wants to connect to, test, or use the McDonalds service at mcp.mcd.cn, including checking authentication, probing MCP endpoints, listing tools, or calling McDonalds MCP tools through a reusable local CLI.
development
Web scraping platform — Twitter/X data, Vinted marketplace, and general web scraping API
development
SlowMist AI Agent Security Review — comprehensive security framework for skills, repositories, URLs, on-chain addresses, and products (Claude Code version)
data-ai
去除中文文本中的 AI 写作痕迹,使其读起来自然。基于维基百科 AI 写作特征指南,检测 24 种 AI 模式。触发词:humanizer-cn、去除 AI 痕迹、去除 AI 写作痕迹、中文文本人性化。