Install
openclaw skills install taobao-price-monitor监控淘宝/天猫商品价格,支持历史价格查询、降价提醒、比价功能。适合电商卖家、代购、精明消费者。
openclaw skills install taobao-price-monitor监控淘宝/天猫商品价格,支持历史价格查询、降价提醒、跨平台比价。
pip3 install requests playwright
playwright install
在 ~/.openclaw/openclaw.json 中添加:
{
skills: {
entries: {
"taobao-price-monitor": {
enabled: true,
env: {
TAOBAO_COOKIE: "your_cookie_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=123
- https://item.taobao.com/item.htm?id=456
- https://item.taobao.com/item.htm?id=789
查看历史价格:
查看这个商品的历史价格走势 https://item.taobao.com/item.htm?id=123456789
比价:
帮我找同款商品的最低价 https://item.taobao.com/item.htm?id=123456789
| 工具 | 功能 | 调用方式 |
|---|---|---|
query_price.py | 查询商品价格 | 自动调用 |
history_price.py | 历史价格查询 | 自动调用 |
price_alert.py | 降价提醒设置 | 自动调用 |
compare_price.py | 比价功能 | 自动调用 |
{
"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 任务,每小时自动检查:
{
cron: {
jobs: [
{
id: "taobao-price-check",
schedule: { kind: "every", everyMs: 3600000 },
payload: {
kind: "agentTurn",
message: "检查监控的淘宝商品价格,有变化时通知我"
},
sessionTarget: "isolated",
}
]
}
}
导出我监控的所有商品价格数据为 Excel
技能支持 HTTP API 调用,适合集成到其他系统:
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 技能。
声明: 本技能仅供学习研究使用,请遵守淘宝/天猫平台规则。