← 返回
未分类 中文

Price Watcher

Monitor product URLs to track and alert on significant price changes using a local watchlist without requiring API keys.
监控商品 URL,追踪并提醒显著价格变化,使用本地关注列表,无需 API密钥。
newageinvestments25-byte newageinvestments25-byte 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 335
下载
💾 0
安装
1
版本
#latest

概述

Price Watcher

Monitor product URLs for price changes via a local watchlist. No API keys required.

Skill Location

~/.openclaw/workspace/skills/price-watcher/

All scripts use SKILL_DIR (parent of scripts/) to resolve watchlist.json.

Core Workflow

Add a product to watch

# Auto-fetch current price from page
python3 scripts/add_product.py "https://www.amazon.com/dp/BXXX"

# Explicit price + name (use when auto-fetch fails)
python3 scripts/add_product.py "https://..." 49.99 "Product Name"

Check all prices

python3 scripts/check_prices.py

Outputs JSON to stdout. Updates watchlist.json with new prices and timestamps.

Filter significant changes

python3 scripts/check_prices.py | python3 scripts/compare.py
python3 scripts/check_prices.py | python3 scripts/compare.py --threshold 10

Default threshold: 5%. Always surfaces fetch errors and no-price results.

Format as markdown alert

python3 scripts/check_prices.py | python3 scripts/compare.py | python3 scripts/format_alert.py

Produces a markdown report with 📉 drops, 📈 increases, and ⚠️ errors.

Watchlist Format

watchlist.json (in skill root) stores an array of objects:

{
  "url": "https://...",
  "name": "Product Name",
  "baseline_price": 49.99,
  "last_price": 44.99,
  "last_checked": "2024-03-15T14:00:00+00:00",
  "price_history": [{"price": 49.99, "date": "..."}]
}

See assets/watchlist.example.json for a full example.

Scheduling

For cron setup, threshold tuning, and anti-bot notes, see references/setup-guide.md.

Error Handling

  • fetch_error: Page couldn't be retrieved (503, timeout, network issue)
  • no_price: Page loaded but no price found — check if site layout changed
  • Both statuses surface in compare.py output and format_alert.py regardless of threshold
  • add_product.py exits with an error if price can't be extracted and none was provided manually

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 09:28 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Tavily 搜索

jacky1n7
通过 Tavily API 进行网页搜索(Brave 替代方案)。当用户要求搜索网页、查找来源或链接,且 Brave 网页搜索不可用时使用。
★ 279 📥 101,660
data-analysis

AdMapix

fly0pants
AdMapix 原始数据层,提供广告创意、应用、排名、下载/收入及市场元数据。返回 AdMapix API 的结构化 JSON;调用方...
★ 298 📥 143,145
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 218 📥 71,734