Monitor product URLs, keep price history, detect offers, and output alert-ready JSON.
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
add: add a single product URLadd-item: discover product URLs from an item query, then add watcheslist: list watched productscheck --id : check one product nowcheck --all: check all products nowremove --id : delete watcherhistory --id : print full price historyA check produces alerts when at least one condition matches:
price_drop: current price < previous pricetarget_hit: current price <= target priceAlert payload includes:
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.This gives users natural language entry ("track iPhone 13 128GB") instead of forcing direct URLs.
Use a layered parser:
offers.priceWhen multiple prices are found, choose the lowest positive value as the current offer candidate.
http/https URLs.check --all on schedule and forward only non-empty alerts.Run every 30–120 minutes via cron, then send each alert to Telegram/WhatsApp/Discord.
共 1 个版本