Monitor product URLs for price changes. Tracks a watchlist of products with baseline prices, fetches pages to extract current prices, and alerts on significant changes. Use when asked to: watch a price, track a price, set a price alert, check for a price drop, find a deal alert, or monitor a product price. Triggers on phrases like "price watch", "track price", "price alert", "price drop", "deal alert", "monitor price", "watch this product", or "let me know when it goes on sale".
技能名称: price-watcher
详细描述:
通过本地监控列表监控产品URL的价格变化。无需API密钥。
~/.openclaw/workspace/skills/price-watcher/
所有脚本使用 SKILL_DIR(scripts/ 的父目录)来解析 watchlist.json。
bash
bash
python3 scripts/check_prices.py
输出JSON到标准输出。用新价格和时间戳更新 watchlist.json。
bash
python3 scripts/check_prices.py | python3 scripts/compare.py
python3 scripts/check_prices.py | python3 scripts/compare.py --threshold 10
默认阈值:5%。始终显示获取错误和无价格结果。
bash
python3 scripts/checkprices.py | python3 scripts/compare.py | python3 scripts/formatalert.py
生成包含 📉 降价、📈 涨价和 ⚠️ 错误的Markdown报告。
watchlist.json(位于技能根目录)存储一个对象数组:
json
{
url: https://...,
name: 产品名称,
baseline_price: 49.99,
last_price: 44.99,
last_checked: 2024-03-15T14:00:00+00:00,
price_history: [{price: 49.99, date: ...}]
}
完整示例请参见 assets/watchlist.example.json。
关于cron设置、阈值调整和反爬虫注意事项,请参见 references/setup-guide.md。
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 price-watcher-1775931345 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 price-watcher-1775931345 技能
skillhub install price-watcher-1775931345
文件大小: 11.34 KB | 发布时间: 2026-4-12 11:05