监控产品价格变化,自动对比历史价格并生成报告。
bash
python3 scripts/monitor_price.py --add "Cursor Pro" --url "https://cursor.com/pricing"
bash
# 1. 获取搜索建议
python3 scripts/monitor_price.py --search --product "Cursor Pro"
# 2. AI Agent 执行搜索
kimi_search(query="Cursor Pro 价格", limit=3)
# 3. 记录价格(根据搜索结果)
python3 scripts/monitor_price.py --record --product "Cursor Pro" --price "$20/月" --source "cursor.com"
bash
python3 scripts/monitor_price.py --report
bash
# 添加竞品
python3 scripts/monitor_price.py --add "Cursor Pro" --url "https://cursor.com/pricing"
python3 scripts/monitor_price.py --add "Windsurf Pro" --url "https://windsurf.com/pricing"
python3 scripts/monitor_price.py --add "GitHub Copilot" --url "https://github.com/features/copilot"
# 定期生成报告
python3 scripts/monitor_price.py --report
bash
# 添加到 crontab,每天早上9点检查
0 9 * * * cd /root/.openclaw/workspace/skills/price-monitor-skill && python3 scripts/monitor_price.py --report
/tmp/price_monitor_db.json/tmp/price_screenshots/json
{
"products": {
"产品名称": {
"url": "官网链接",
"search_query": "搜索关键词",
"added_at": "添加时间",
"last_price": "最后记录价格",
"last_check": "最后检查时间"
}
},
"history": [
{
"product": "产品名称",
"price": "价格",
"source": "来源",
"date": "记录时间",
"change": "变动信息(可选)"
}
]
}
bash
export PRICE_DB_FILE="/custom/path/price_db.json"
export PRICE_SCREENSHOT_DIR="/custom/path/screenshots"
python3 scripts/monitor_price.py --report
bash
# 创建一个产品列表文件 products.txt
# 格式: 产品名称|官网URL|搜索关键词
# 然后批量导入
while IFS='|' read -r name url query; do
python3 scripts/monitor_price.py --add "$name" --url "$url"
done < products.txt
数据持久化: 默认数据存储在 /tmp 目录,系统重启可能丢失。建议设置自定义路径到持久化存储。
价格解析: 当前版本需要手动解析 kimi_search 结果并记录价格。未来版本可能支持自动解析。
并发安全: 单文件 JSON 存储不适合高并发写入。
Skill配合方式kimi_search搜索产品价格信息browser官网价格截图存档weekly-report-skill价格变动周报auto-weekly-system定时价格监控报告
如有问题或建议,欢迎反馈。