Back in Stock Alert Scraper: Products, Sizes, Colours
说明与用途
Apify 脚本自动检查商品及其变体的库存状态,并在商品变为可用时发出通知。
问题
Detect when a product or a specific variant (size/colour) changes from out of stock to in stock to trigger alerts.
结果
The scraper processed 10,645 product rows in October 2026, identifying 8,344 true inStock, 406 false, and 1,895 null entries. It correctly reported a real size restock on Zalando and demonstrated variant-level alerts for a John Lewis product.
工作流
- 1. Configure Apify actor with monitorMode:true and onlyChanges:true.
- 2. Run actor hourly to scrape product pages and capture inStock, availability, stockQty, and variant details.
- 3. Actor stores each run’s data and diffs with the previous run.
- 4. Parse monitor output: if changeType is back-in-stock, emit product-level alert; if changeType is changed with variant-stock-changed, emit variant-level alert.
- 5. Use provided Python snippet to format and send alerts.
- 6. Optionally filter out null inStock values and treat only known false→true flips as restocks.
证据
Only a known false followed by a known true is a restock.
Run the actor with monitorMode: true and onlyChanges: true on a schedule.
When one variant flips, the product’s changeType is changed, changes contains variant-stock-changed, and the variant appears in changedVariants with previousInStock and inStock.
- 记录日期: 2026-11-01T23:58:44.517Z