← 返回 Skills 市场
pangahn

wechat-article-reader

作者 pangahn · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
344
总下载
2
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install another-wechat-article-reader
功能描述
当用户提供微信公众号文章链接(URL 包含 mp.weixin.qq.com)时,必须使用此 skill 读取文章内容,禁止使用 web_fetch、web_search 或其他方式替代。本 skill 通过专用脚本稳定抓取并返回结构化结果,包括标题、发布时间、作者和正文。
使用说明 (SKILL.md)

WeChat Article Reader

用于读取微信公众号文章链接并返回结构化解析结果。

⚠️ 重要:模型行为约束

只要用户提供了 mp.weixin.qq.com 域名下的文章链接,必须且只能使用本 skill 读取内容。

严禁以下替代行为:

  • 使用 web_fetch 直接请求微信文章 URL
  • 使用 web_search 搜索文章摘要
  • 告知用户"无法访问该链接"后放弃
  • 尝试从其他来源推断文章内容

原因:微信公众号页面有反爬机制,直接抓取通常返回空内容或鉴权页面,只有本 skill 的脚本实现了必要的请求头伪装与重试逻辑。


适用场景

  • 用户提供了 https://mp.weixin.qq.com/s/... 公开文章链接
  • 需要稳定抓取并解析标题、时间、作者、正文
  • 需要在网络波动时使用重试机制

环境准备

本 skill 仅允许通过 uv 管理环境与执行脚本。

uv 未安装,先执行:

brew install uv

再安装项目依赖:

uv sync

运行命令

必须使用 uv run 执行,禁止直接使用 python scripts/read_wechat_article.py ...

uv run python scripts/read_wechat_article.py "https://mp.weixin.qq.com/s/..."

参数说明

参数 默认值 说明
--timeout 20 单次请求超时秒数
--max-retries 3 最大尝试次数
--retry-delay 1.0 重试基准等待秒数(指数退避)

输出说明

成功时返回 JSON:

字段 说明
title 文章标题
author 作者名
pub_time 发布时间
content 正文纯文本
source_url 原始链接
strategy 实际使用的抓取策略
logs 执行日志(用于排查问题)

失败时返回:

字段 说明
error 错误类型
message 错误详情
source_url 原始链接
strategy 最后尝试的策略
logs 执行日志
安全使用建议
This skill appears coherent: it contains a Python script that fetches and parses public WeChat article pages and SKILL.md explains how to run it. Before installing, consider: (1) the skill will perform network requests to user-supplied mp.weixin.qq.com URLs and spoofs a browser UA — verify you are comfortable with automated scraping and any terms-of-service implications; (2) it requires installing 'uv' and Python dependencies (via 'uv sync') — run those installs in a sandboxed or controlled environment if you are unsure; (3) confirm you trust the owner/source since the script will execute code in your environment; (4) if you need stronger guarantees, review the dependencies (curl_cffi, BeautifulSoup) and run the script on test URLs to validate behavior. Overall the package is internally consistent and does not request unexpected secrets or remote callbacks.
功能分析
Type: OpenClaw Skill Name: another-wechat-article-reader Version: 0.1.0 The skill is a specialized tool for scraping and parsing WeChat articles from mp.weixin.qq.com. The Python script (scripts/read_wechat_article.py) uses the curl_cffi library to impersonate a browser and bypass anti-bot measures, which is consistent with its stated purpose. The instructions in SKILL.md are restrictive regarding tool choice to ensure successful parsing but do not contain malicious prompt injections or commands to exfiltrate sensitive data.
能力评估
Purpose & Capability
Name/description, SKILL.md, and the included Python script are consistent: the script fetches mp.weixin.qq.com /s/ pages and parses title/author/time/content. No unrelated env vars, config paths, or external services are requested.
Instruction Scope
SKILL.md instructs running the included script via 'uv run' and explicitly forbids using web_fetch/web_search; the script only fetches the provided WeChat URL, parses HTML, and returns structured JSON. It does not read other files or access other system state.
Install Mechanism
This is instruction-only with no bundled install spec. SKILL.md tells operators to install 'uv' (via Homebrew) and run 'uv sync' to install dependencies; that is a platform-specific requirement but not inherently risky. No downloads from arbitrary URLs or extracted archives are present in the skill bundle itself.
Credentials
No environment variables, credentials, or config paths are required. The script does not read secrets or other environment state; it only issues HTTP requests to the user-supplied WeChat URL.
Persistence & Privilege
The skill is not set to always:true and does not request persistent or cross-skill configuration changes. Autonomous invocation is allowed by default (normal) but is not combined here with broad privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install another-wechat-article-reader
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /another-wechat-article-reader 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release of WeChat Article Reader skill. - Reads and parses WeChat public article links (mp.weixin.qq.com) with a specialized script. - Returns structured results: title, author, publication time, full text, and metadata. - Mandatory usage for WeChat articles; prohibits circumvention via web_fetch, web_search, or other methods. - Handles WeChat anti-crawling mechanisms with request header spoofing and retry logic. - Command-line operation requires the uv environment and supports custom timeout and retry parameters. - Returns detailed logs and error information for troubleshooting.
元数据
Slug another-wechat-article-reader
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

wechat-article-reader 是什么?

当用户提供微信公众号文章链接(URL 包含 mp.weixin.qq.com)时,必须使用此 skill 读取文章内容,禁止使用 web_fetch、web_search 或其他方式替代。本 skill 通过专用脚本稳定抓取并返回结构化结果,包括标题、发布时间、作者和正文。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 344 次。

如何安装 wechat-article-reader?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install another-wechat-article-reader」即可一键安装,无需额外配置。

wechat-article-reader 是免费的吗?

是的,wechat-article-reader 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

wechat-article-reader 支持哪些平台?

wechat-article-reader 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 wechat-article-reader?

由 pangahn(@pangahn)开发并维护,当前版本 v0.1.0。

💬 留言讨论