← Back to Skills Marketplace
yinanping-cpu

Price Monitor

by Yinanping · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
265
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install yinan-price-monitor
Description
Monitor website prices, inventory, and content changes using browser automation. Use when tracking e-commerce prices, competitor monitoring, stock alerts, or...
README (SKILL.md)

Price Monitor

Overview

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.

Quick Start

# Monitor a product price
agent-browser open "https://example.com/product/123"
agent-browser snapshot -i
agent-browser get text @e1  # Get price element

Core Workflows

1. Single Product Price Check

Use case: Check current price of a specific product

# Navigate to product page
agent-browser open "\x3Cproduct-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

2. Multi-Product Monitoring

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

3. Stock/Inventory Alerts

Use case: Get notified when out-of-stock items become available

agent-browser open "\x3Cproduct-url>"
agent-browser snapshot -i
agent-browser get text @e1  # Check for "In Stock" or "Out of Stock"

4. Price History Tracking

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

Scripts

monitor_prices.py

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%)

Configuration

Product List Format (CSV)

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

Alert Options

  • Email alerts - Configure SMTP settings
  • Discord webhook - Post to Discord channel
  • File logging - Append to CSV/JSON
  • Console output - Print changes to terminal

Best Practices

  1. Rate limiting - Add delays between requests (30s+ recommended)
  2. Error handling - Handle page load failures gracefully
  3. Selector stability - Use stable CSS selectors, avoid dynamic classes
  4. Headless mode - Run browser in headless mode for automation
  5. Schedule wisely - Check prices during business hours for accuracy

Example: Daily Price Check Cron

# Run every day at 9 AM
0 9 * * * cd /path/to/skill && python scripts/monitor_prices.py products.csv

Troubleshooting

  • Element not found: Re-run snapshot to get updated refs
  • Price format issues: Adjust selector or parse with regex
  • Page load timeout: Increase timeout or add wait condition
  • Blocked by site: Add delays, rotate user agents, or use residential proxy
Usage Guidance
This skill appears to generally do what it claims (visit pages and log prices), but you should resolve a few issues before trusting it: - Ensure a legitimate 'agent-browser' CLI is installed and review what that binary does. The Python script calls subprocess.run(['agent-browser', ...]) but the skill metadata did not declare agent-browser as a required binary. If a malicious binary named 'agent-browser' were on PATH it could be invoked. - Be aware the shipped script only logs to CSV and prints alerts — SKILL.md mentions email/Discord/webhooks and proxy/UA rotation, but those features are not implemented. If you need them, implement them yourself and avoid storing credentials in plaintext or hard-coding webhooks. - Confirm the working directory where the script runs. It will write price-history.csv and will read whatever products CSV you pass; do not point it at sensitive internal URLs unless you intend it to capture those pages. - Rate limiting: the script sleeps 2 seconds between checks but SKILL.md recommends slower polling (30s+). Adjust sleep/cron frequency to avoid being blocked by sites and to respect ToS. If you proceed, audit and control the agent-browser binary, run the script in a restricted environment, and add explicit, secure handling for any alert credentials you add. If you want a cleaner install, insist the skill metadata declare required binaries (agent-browser) and any needed env vars for alerts.
Capability Analysis
Type: OpenClaw Skill Name: yinan-price-monitor Version: 1.0.0 The skill is a legitimate price monitoring tool that uses browser automation to track website changes. The core logic in `scripts/monitor_prices.py` uses the `agent-browser` utility to extract data based on user-provided CSV configurations. It follows security best practices by using `subprocess.run` with argument lists instead of shell execution, preventing common injection vulnerabilities, and contains no evidence of data exfiltration, persistence, or malicious instructions.
Capability Assessment
Purpose & Capability
The name/description align with the included Python script: it reads a CSV of product URLs, uses browser automation (via an external agent-browser binary) to extract prices, logs history, and reports changes. However, SKILL.md advertises email/Discord webhook alerts and several alert options that are not implemented in scripts/monitor_prices.py — the script only logs to CSV and prints alerts to console. Also SKILL.md recommends proxies/UA rotation, but the code does not implement these features.
Instruction Scope
Runtime instructions focus on visiting product pages, taking snapshots, extracting text, and running the Python monitor. The code does exactly that (calls agent-browser, parses output, writes price-history.csv). There is no code that reads unrelated system files or transmits data to arbitrary endpoints. Note: if you point the skill at pages behind authentication or internal URLs, the skill will capture page content you give it access to — expected but worth noting.
Install Mechanism
This is instruction-only with a local Python script (no install spec). However, both SKILL.md and the script depend on an external 'agent-browser' CLI being present and callable via subprocess. The skill metadata lists no required binaries — that is an inconsistency. The absence of a declared dependency on agent-browser is a risk: the script will fail or behave unexpectedly if agent-browser is not present or is a different program, and it places implicit trust in whatever 'agent-browser' is installed on PATH.
Credentials
The skill declares no required environment variables or credentials and the Python code does not read env vars. SKILL.md mentions SMTP and Discord webhooks for alerts (and suggests proxies), but those integrations are not implemented and no credentials are requested. This mismatch could confuse users and may lead to ad-hoc modifications that introduce credential handling without clear guidance.
Persistence & Privilege
The skill is not always-enabled and does not request elevated or persistent system privileges. It writes price-history.csv to the working directory (normal for this use). It does not modify other skills' configs or system-wide settings.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install yinan-price-monitor
  3. After installation, invoke the skill by name or use /yinan-price-monitor
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release: Automated website price and content monitoring tool. - Monitors prices, inventory, and content changes on any website using browser automation. - Supports scheduled checks, price history logging, and notification alerts for significant changes. - Provides multi-product monitoring via CSV, with flexible selectors for any site. - Includes scripts for automated price tracking, logging, and alerts (email, Discord, file, or console). - Designed with best practices for reliability, error handling, and rate limiting.
Metadata
Slug yinan-price-monitor
Version 1.0.0
License
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Price Monitor?

Monitor website prices, inventory, and content changes using browser automation. Use when tracking e-commerce prices, competitor monitoring, stock alerts, or... It is an AI Agent Skill for Claude Code / OpenClaw, with 265 downloads so far.

How do I install Price Monitor?

Run "/install yinan-price-monitor" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Price Monitor free?

Yes, Price Monitor is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Price Monitor support?

Price Monitor is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Price Monitor?

It is built and maintained by Yinanping (@yinanping-cpu); the current version is v1.0.0.

💬 Comments