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