price-monitor-fr
Surveille les prix de produits sur des sites e-commerce et alerte quand ils baissent.
Setup & Installation
Install command
clawhub install hugosbl/price-monitor-frIf the CLI is not installed:
Install command
npx clawhub@latest install hugosbl/price-monitor-frOr install with OpenClaw CLI:
Install command
openclaw skills install hugosbl/price-monitor-fror paste the repo link into your assistant's chat
Install command
https://github.com/openclaw/skills/tree/main/skills/hugosbl/price-monitor-frWhat This Skill Does
Monitors product prices on French e-commerce sites and records alerts when prices drop. Supports Amazon.fr, Fnac, Cdiscount, and Boulanger, plus a generic extractor for other sites. Price history and alerts are stored locally.
Uses Python stdlib only with no external dependencies, so it runs anywhere Python is installed without setup overhead.
When to Use It
- Track a PS5 price on Amazon.fr until it hits your budget
- Get alerted when a Fnac laptop drops more than 5%
- Compare price history before buying a product
- Monitor multiple items at once across different stores
- Export alerts as JSON for use in another script
View original SKILL.md file
# Price Monitor Surveille les prix de produits sur des sites e-commerce et alerte quand ils baissent. ## Usage ```bash python skills/price-monitor/scripts/monitor.py <command> [options] ``` ## Commands | Commande | Description | |---|---| | `add <url> [--name "Nom"] [--target-price 50]` | Ajouter un produit à surveiller | | `list` | Lister les produits surveillés | | `check [--all] [id]` | Vérifier les prix (un ou tous) | | `remove <id>` | Supprimer un produit | | `history <id>` | Historique des prix d'un produit | | `alerts` | Voir les alertes de baisse de prix | ## Options globales - `--json` — Output JSON au lieu du texte formaté ## Sites supportés - **Amazon.fr** — `a-offscreen`, `data-a-color="price"` - **Fnac.com** — meta tags, `f-priceBox-price` - **Cdiscount** — `c-product__price`, itemprop - **Boulanger** — `class="price"`, itemprop - **Générique** — og:price → JSON-LD → itemprop → regex € ## Extracteur générique (ordre de priorité) 1. `<meta property="og:price:amount">` 2. JSON-LD schema.org (`"price":"XX.XX"`) 3. `itemprop="price"` 4. Regex fallback sur patterns `XX,XX €` ## Alertes - **Prix cible atteint** : prix actuel ≤ target-price → 🎯 - **Baisse > 5%** par rapport au dernier check → 🔥 - Format : `Amazon PS5 : 449€ → 399€ (-11%) 🔥` ## Stockage - `~/.price-monitor/products.json` — Liste des produits - `~/.price-monitor/history/<id>.json` — Historique par produit - `~/.price-monitor/alerts.json` — Alertes enregistrées ## Exemples ```bash # Ajouter un produit python monitor.py add "https://www.amazon.fr/dp/B0BN..." --name "PS5" --target-price 400 # Vérifier tous les prix python monitor.py check --all # Historique python monitor.py history abc12345 # Alertes en JSON python monitor.py --json alerts ``` ## Technique - Python stdlib uniquement (urllib, json, re) - User-Agent Chrome réaliste - Timeout 10s par requête - Voir `references/extractors.md` pour ajouter des sites
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: Track a PS5 price on Amazon.fr until it hits your budget
- 1Track a PS5 price on Amazon.fr until it hits your budget
- 2Get alerted when a Fnac laptop drops more than 5%
- 3Compare price history before buying a product
- 4Monitor multiple items at once across different stores
- 5Export alerts as JSON for use in another script
Surveille les prix de produits sur des sites e-commerce et alerte quand ils baissent.
Security Audits
These signals reflect official OpenClaw status values. A Suspicious status means the skill should be used with extra caution.