From ea6612125cd5ebb3eadd547e702ae28e2c01f8c2 Mon Sep 17 00:00:00 2001 From: jason Date: Sat, 6 Jun 2026 14:14:15 -0500 Subject: [PATCH] scaper wait time and debug --- backend/src/scraper.ts | 76 ++++++++++++++++++++++++++++++++++-------- 1 file changed, 63 insertions(+), 13 deletions(-) diff --git a/backend/src/scraper.ts b/backend/src/scraper.ts index 5da9bf8..a8c76a4 100644 --- a/backend/src/scraper.ts +++ b/backend/src/scraper.ts @@ -70,24 +70,55 @@ export async function checkStockStatus(url: string): Promise { await page.goto(url, { waitUntil: 'networkidle2', timeout: 45000 }); - // Wait for React hydration + // Wait for React hydration, then actively wait for a