Scaper fixes - UI website update
Build and Push Docker Image / build (push) Successful in 5m40s

This commit is contained in:
2026-06-06 13:37:18 -05:00
parent 1a83befde3
commit 4db4b9d694
2 changed files with 15 additions and 9 deletions
+3 -3
View File
@@ -42,9 +42,9 @@ The SQLite database is stored on a mounted volume at `/app/data/tracker.db` so i
## Key Features
### Stock Detection
Puppeteer navigates to each product URL and waits for React hydration (2.5s delay), then scans all `<span>` elements for exact text matches:
- `"Add to Cart"``in_stock`
- `"Sold Out"``sold_out`
Puppeteer navigates to each product URL and waits for React hydration (2.5s delay), then:
- `<button label="Add to Cart">` present`in_stock`
- Any `<button>` whose text is `"Notify me when available"`, `"Sold Out"`, or `"Out of Stock"``sold_out`
- Neither found → `unknown`
Product name is pulled from the `og:title` meta tag (with Ubiquiti store suffix stripped). Thumbnail is pulled from `og:image`.