技能详情(站内镜像,无评论)
作者:Alien @AlienHub
许可证:MIT-0
MIT-0 ·免费使用、修改和重新分发。无需归因。
版本:v0.0.1
统计:⭐ 1 · 106 · 0 current installs · 0 all-time installs
⭐ 1
安装量(当前) 0
🛡 VirusTotal :良性 · OpenClaw :良性
Package:alienhub/wechat-article-skill
安全扫描(ClawHub)
- VirusTotal :良性
- OpenClaw :良性
OpenClaw 评估
The skill's code, instructions, and requirements are coherent with its stated purpose (fetch and extract WeChat public-article content); there are no unexplained credentials, odd downloads, or surprising behaviors in the provided files.
目的
INVALID LANGUAGE PAIR SPECIFIED. EXAMPLE: LANGPAIR=EN|IT USING 2 LETTER ISO OR RFC3066 LIKE ZH-CN. ALMOST ALL LANGUAGES SUPPORTED BUT SOME MAY HAVE NO CONTENT
说明范围
SKILL.md restricts operations to running the local get_content.py script (preferred) and, only if that fails, using the agent's browser tool to navigate and snapshot the page. This stays within the stated purpose. Note: using the browser tool may cause the page and its resources to be rendered/handled by the platform's browser service (possible third-party exposure depending on the platform).
安装机制
No automated install spec in the registry; the README/SKILL.md instructs users to pip install the listed Python dependencies (beautifulsoup4, certifi). This is proportionate and expected for a Python parsing script; nothing is downloaded from unknown/personal URLs.
证书
No credentials, secret environment variables, or config paths are requested. The script only uses standard HTTP requests + certifi and parses HTML—no disproportionate access is required.
持久
Skill is not forced-always (always: false) and does not request persistent privileges or modify other skills. Autonomous invocation is allowed by default but is normal for skills and not combined with other red flags here.
综合结论
INVALID LANGUAGE PAIR SPECIFIED. EXAMPLE: LANGPAIR=EN|IT USING 2 LETTER ISO OR RFC3066 LIKE ZH-CN. ALMOST ALL LANGUAGES SUPPORTED BUT SOME MAY HAVE NO CONTENT
安装(复制给龙虾 AI)
将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。
请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「wechat-article-skill」。简介:微信公众号文章链接处理。当用户发送微信公众号文章链接时,自动获取并提取文章内容。 触发条件:(1) 用户发送 http(s)://mp.weixin.qq.c…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/alienhub/wechat-article-skill/SKILL.md
(来源:yingzhi8.cn 技能库)
SKILL.md
---
name: wechat-article-fetcher
description: |
微信公众号文章链接处理。当用户发送微信公众号文章链接时,自动获取并提取文章内容。
触发条件:(1) 用户发送 http(s)://mp.weixin.qq.com/s/ 开头的链接 (2) 用户请求获取公众号文章内容
---
# 微信公众号文章获取
## 识别公众号链接
公众号文章链接特征:
- 域名: `mp.weixin.qq.com`
- 路径: `/s/` 开头
- 示例: `https://mp.weixin.qq.com/s/abc123def456`
## 获取文章内容的方法
> ⚠️ 微信服务器会检测请求头,必须携带正常浏览器的 User-Agent,否则返回 403。
### Agent 调用顺序(重要)
1. **优先使用 get_content.py 脚本** —— 稳定、无头、输出直接供模型消费。
2. **仅在脚本失败时改用 browser 工具** —— 脚本 stderr 会输出「建议 Agent 改用 browser 工具」等提示,此时再考虑浏览器。
### 方法一:get_content.py 脚本(首选)
本地 CLI,urllib + certifi + 真实 UA,自带重试(最多 3 次)。失败时 stderr 提示是否改用 browser。
```bash
# 安装依赖(首次)
pip install -r requirements.txt
# 调用
python scripts/get_content.py --url "https://mp.weixin.qq.com/s/xxx"
```
- 成功:正文输出到 stdout。
- 失败:stderr 输出原因及「建议 Agent 改用 browser 工具」。
### 方法二: browser 工具(脚本失败时的回退)
仅在脚本返回非 0 且 stderr 建议改用 browser 时使用:
```python
browser(action="navigate", url="用户发送的链接")
browser(action="snapshot")
```
## 内容提取要点
公众号页面结构:
- 文章正文在 `#page-content` 元素中
- 标题通常在 `#activity-name` 或 `h1` 标签
- 作者信息在 `.account_nickname` 或类似元素
- 发布时间需要从页面元数据提取
## 处理流程
1. **识别链接** → 检测到 `mp.weixin.qq.com/s/` 链接
2. **获取内容** → 调用 `get_content.py --url <链接>`
3. **成功** → 正文在 stdout,直接供模型消费
4. **失败** → 检查 stderr,若建议改用 browser,再用 browser 工具重试
## 注意事项
- 公众号文章可能需要登录才能完整抓取
- 部分文章有访问时间限制
- 图片可能需要单独处理(使用微信图床域名)
- **必须使用正常浏览器的 User-Agent**