name: price-monitor description: Monitor website prices, inventory, and content changes using browser automation. Use when tracking e-commerce prices, competitor monitoring, stock alerts, or any web content change detection. Supports scheduled checks, price history logging, and alert notifications.
Automated price and content monitoring skill using agent-browser. Tracks price changes, stock availability, and content updates on any website with configurable alerts and history logging.
# Monitor a product price
agent-browser open "https://example.com/product/123"
agent-browser snapshot -i
agent-browser get text @e1 # Get price element
Use case: Check current price of a specific product
# Navigate to product page
agent-browser open "<product-url>"
# Get page snapshot to find price element
agent-browser snapshot -i
# Extract price (use appropriate ref from snapshot)
agent-browser get text @e1
# Optional: Save to history log
echo "$(date), $(price)" >> price-history.csv
Use case: Track prices across multiple products/competitors
Create a products.csv with URLs and price selectors:
url,selector,name
https://site-a.com/product1,.price-tag,Product A
https://site-b.com/item2,#price,Product B
Run monitoring script:
python scripts/monitor_prices.py products.csv
Use case: Get notified when out-of-stock items become available
agent-browser open "<product-url>" agent-browser snapshot -i agent-browser get text @e1 # Check for "In Stock" or "Out of Stock"小蔥技能站7w4.net發現了升級外掛。
Use case: Build historical price data for analysis
Script automatically logs: - Timestamp - Product name/URL - Current price - Stock status
Output: price-history.csv or JSON format
Main monitoring script that: - Reads product list from CSV - Navigates to each URL - Extracts price using CSS selector - Logs results with timestamp - Detects price changes - Optional: Send alerts on significant changes
Usage:
python scripts/monitor_prices.py products.csv [--alert-threshold 10]
Arguments:
- products.csv - Product list with URLs and selectors
- --alert-threshold - Percentage change to trigger alert (default: 10%)
url,selector,name,min_price,max_price
https://amazon.com/dp/B08N5WRWNW,.a-price-whole,Sony Headphones,50,150
https://bestbuy.com/site/12345,.priceView-hero-price,TV,200,500
# Run every day at 9 AM
0 9 * * * cd /path/to/skill && python scripts/monitor_prices.py products.csv
這個價格監控工具功能實用,能有效追蹤電商網站的價格變化。文件說明清晰易懂,示例配置可以直接參考使用。主要優點是操作簡單、自動化程度高。不足是長期執行的穩定性缺乏保障,缺少自動化測試驗證,可能需要使用者自行補充額外的監控和日誌機制來確保可靠性。