Schedule a Weekly Price Monitor in 10 Minutes
Описание и применение
Автоматический мониторинг цен, запускаемый еженедельно через GitHub Actions, использует Scrapio для извлечения цены и отправляет уведомление по webhook, если цена упала.
Задача
Automating price monitoring requires a server, cron job, scraper, and notification system, which can be complex and time‑consuming.
Результат
A fully automated weekly price monitor that runs in under 10 minutes, requires no dedicated server, and alerts via webhook when prices drop.
Рабочий процесс
- Set up a Scrapio API key
- Create a cron trigger (e.g., GitHub Actions) to run weekly
- Use Scrapio fetch API to extract price and availability from the product page
- Persist the last price in a local JSON file
- Compare current price to last price
- If price dropped, POST a notification to a webhook URL
- Save the new price for next run
Доказательства
The pattern is simple: A cron trigger fires on a schedule, it calls Scrapio to extract the current price, compares against the last recorded price, and if the price dropped, it sends a notification.
Use the extract parameter to pull just the fields you care about
- Дата записи: 2026-09-09T21:00:59.974Z