监控淘宝/天猫商品价格,支持历史价格查询、降价提醒、比价功能。适合电商卖家、代购、精明消费者。
监控淘宝/天猫商品价格,支持历史价格查询、降价提醒、跨平台比价。
bash
pip3 install requests playwright
playwright install
在 ~/.openclaw/openclaw.json 中添加:
json5
{
skills: {
entries: {
taobao-price-monitor: {
enabled: true,
env: {
TAOBAOCOOKIE: yourcookie_here,
},
},
},
},
}
查询单个商品价格:
监控淘宝价格 https://item.taobao.com/item.htm?id=123456789
设置降价提醒:
当这个商品降到 100 元以下时提醒我 https://item.taobao.com/item.htm?id=123456789
批量监控:
监控以下商品的价格:
查看历史价格:
查看这个商品的历史价格走势 https://item.taobao.com/item.htm?id=123456789
比价:
帮我找同款商品的最低价 https://item.taobao.com/item.htm?id=123456789
| 工具 | 功能 | 调用方式 |
|---|---|---|
| queryprice.py | 查询商品价格 | 自动调用 |
| historyprice.py |
json
{
item_id: 123456789,
title: 商品标题,
current_price: 199.00,
original_price: 299.00,
discount: 6.7 折,
sales: 月销 1000+,
shop_name: 店铺名称,
shop_rating: 4.8,
delivery: 包邮,
timestamp: 2026-03-24 00:00:00
}
配置 cron 任务,每小时自动检查:
json5
{
cron: {
jobs: [
{
id: taobao-price-check,
schedule: { kind: every, everyMs: 3600000 },
payload: {
kind: agentTurn,
message: 检查监控的淘宝商品价格,有变化时通知我
},
sessionTarget: isolated,
}
]
}
}
导出我监控的所有商品价格数据为 Excel
技能支持 HTTP API 调用,适合集成到其他系统:
bash
curl http://localhost:18789/skills/taobao-price-monitor/query \
-d {item_id: 123456789}
Q: 为什么有些商品价格获取失败?
A: 可能是反爬限制,尝试配置 Cookie 或使用代理。
Q: 历史价格数据准确吗?
A: 基于公开数据抓取,仅供参考,以实际下单为准。
Q: 可以监控拼多多/京东吗?
A: 请安装对应的 pinduoduo-price-monitor 和 jd-price-monitor 技能。
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 taobao-price-monitor-1776026949 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 taobao-price-monitor-1776026949 技能
skillhub install taobao-price-monitor-1776026949
文件大小: 5.03 KB | 发布时间: 2026-4-13 12:16