运行时依赖
安装命令
点击复制本土化适配说明
WeChat RSS 安装说明: 安装命令:["openclaw skills install wechat-rss"] 该技能用于微信相关操作,可能需要相应的平台账号或API密钥
技能文档
WeChat RSS 技能
Fetch and display the latest articles from WeChat public accounts using the wcrss.com API.
Prerequisites
Before using this 技能, the user must:
Register an account at https://wcrss.com/ 添加 favorite public accounts at https://wcrss.com/publishers 生成 an API key at https://wcrss.com/设置tings Save the API key as an 环境 variable WCRSS_API_KEY Python Scripts
This 技能 uses Python scripts for data fetching:
Location: scripts/wechat_rss.py (relative to 技能 directory) Commands: python scripts/wechat_rss.py fetch - Fetch articles (auto-缓存d for 1 hour) python scripts/wechat_rss.py 获取 <索引> - 获取 single article by 索引 python scripts/wechat_rss.py count - 获取 total articles count 工作流 for 代理 Step 1: Fetch Articles 列出
执行 the Python script to fetch articles:
python scripts/wechat_rss.py fetch 3 10
Step 2: 获取 Total Articles Count python scripts/wechat_rss.py count
Step 3: Process Each Article
For each article 索引 from 0 to (count-1), call:
python scripts/wechat_rss.py 获取 <索引>
This returns:
{ "title": "文章标题", "author": "公众号名称", "content_html": "
HTML内容...
", "url": "https://example.com/s/article", "publish_time": "%Y-%m-%d %H:%M", "description": "文章简介" }Step 4: Summarize Each Article
For each article, use the LLM to summarize the content_html into key points (bullet 列出).
LLM Prompt:
请从以下文章内容中提取关键要点,以条目的形式列出:
标题:{title} 作者:{author} 内容:{content_html} 时间:{publish_time}
请提取3-8个核心要点,每个要点用一句话概括。
Step 5: Display 结果s
For each article, display in this 格式化:
【{序号}】{标题} 作者:{公众号名称} {时间} 文章要点:
- 要点1
- 要点2
- 要点3
Error Handling If "WCRSS_API_KEY 环境 variable not 设置" error occurs, 图形界面de the user to 配置 the API key If API returns an error, display the error message to the user If no articles are found, 信息rm the user and suggest 检查ing their followed publishers