Build a Multi‑Site Competitor Price Monitor in 10 Minutes (No Selectors, No Selenium)
Описание и применение
Создайте мониторинг цен конкурентов на нескольких сайтах за 10 минут без селекторов и Selenium, используя API Scraping AI, Slack‑уведомления и бесплатный GitHub Actions.
Задача
Custom scrapers for each e‑commerce site are fragile, requiring constant selector maintenance and complex parsing for price formats.
Результат
Monitors 50 products across 3 retailers daily for ~$6.60/month, zero‑cost cron via GitHub Actions, and real‑time Slack alerts for price drops.
Рабочий процесс
- 1. Install Scraping AI SDK: pip install scraping‑ai
- 2. Create SQLite DB for price history
- 3. Define monitor_url function that calls Scraping AI with a schema
- 4. Compare current price to last stored price
- 5. If price dropped, format alert and POST to Slack webhook
- 6. Log new price to database
- 7. Schedule script on GitHub Actions cron
Доказательства
Use Scraping AI to extract normalized numeric pricing and stock status with a single API call.
Zero‑Cost Cron: Runs automatically on free GitHub Actions compute.
- Дата записи: 2026-09-21T18:00:28.468Z