← 返回
效率工具 中文

Ecommerce Price Watcher

Track product prices across ecommerce sites and alert on offers or target-price hits. Use when a user wants to monitor one or many product URLs or item queries, compare current vs previous prices, detect discounts, and generate alert-ready summaries with product name, old/new price, percent drop, and direct link.
跨电商平台追踪商品价格,并在发现优惠或达到目标价时提醒。当用户需监控商品链接或查询、对比价格变化、检测折扣并生成包含商品名、新旧价格、跌幅及链接的提醒摘要时使用。
pbalajiips
效率工具 clawhub v1.1.0 1 版本 99373.4 Key: 无需
★ 4
Stars
📥 3,409
下载
💾 128
安装
1
版本
#latest

概述

Ecommerce Price Watcher

Monitor product URLs, keep price history, detect offers, and output alert-ready JSON.

Quick start

Use scripts/price_watch.py.

# URL mode
python3 skills/ecommerce-price-watcher/scripts/price_watch.py add \
  --url "https://example.com/product" \
  --target-price 399990 \
  --currency CLP

# Item mode (discover URLs from query)
python3 skills/ecommerce-price-watcher/scripts/price_watch.py add-item \
  --query "iPhone 13 128GB Chile" \
  --target-price 349990 \
  --currency CLP \
  --trusted-only \
  --max-results 5

python3 skills/ecommerce-price-watcher/scripts/price_watch.py check --all

Commands

  • add: add a single product URL
  • add-item: discover product URLs from an item query, then add watches
  • list: list watched products
  • check --id : check one product now
  • check --all: check all products now
  • remove --id : delete watcher
  • history --id : print full price history

Alert behavior

A check produces alerts when at least one condition matches:

  1. price_drop: current price < previous price
  2. target_hit: current price <= target price

Alert payload includes:

  • product id
  • title
  • old/new price
  • drop percent (when available)
  • URL
  • timestamp

Item-query mode details

add-item uses a lightweight search discovery flow to find candidate product links.

  • --trusted-only restricts discovered URLs to a curated trusted domain list.
  • --max-results controls how many links are added.
  • Duplicate URLs are skipped safely.

This gives users natural language entry ("track iPhone 13 128GB") instead of forcing direct URLs.

Parsing strategy

Use a layered parser:

  1. JSON-LD offers.price
  2. Open Graph/meta price fields
  3. Generic HTML regex fallback

When multiple prices are found, choose the lowest positive value as the current offer candidate.

Security standards

  • Accept only http/https URLs.
  • Enforce request timeout.
  • Enforce response body size cap.
  • Do not execute remote JavaScript.
  • Store no API keys/tokens in watcher data.
  • Treat all page content as untrusted.
  • Return structured JSON for safe downstream automation.

Limits and operational notes

  • Some stores block bot-like requests (403). This is expected on certain sites.
  • Price extraction is best-effort and may need store-specific adapters over time.
  • For production alerting, run check --all on schedule and forward only non-empty alerts.

Suggested scheduled usage

Run every 30–120 minutes via cron, then send each alert to Telegram/WhatsApp/Discord.

版本历史

共 1 个版本

  • v1.1.0 当前
    2026-03-28 17:22 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Obsidian

steipete
操作 Obsidian 仓库(纯 Markdown 笔记)并通过 obsidian-cli 自动化。
★ 429 📥 103,687
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 437 📥 147,168
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 444 📥 226,102