From 48a5ac3b8268bb6af94ef073d176e80e6c8dbcee Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sun, 18 Aug 2024 22:34:46 +0530 Subject: [PATCH] feat: scrape for default case --- maxun-core/src/interpret.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/maxun-core/src/interpret.ts b/maxun-core/src/interpret.ts index 6eadebde..5e4551a4 100644 --- a/maxun-core/src/interpret.ts +++ b/maxun-core/src/interpret.ts @@ -416,7 +416,9 @@ export default class Interpreter extends EventEmitter { await loadMoreButton.click(); break; default: - return allResults; // No pagination or unknown type + const results = await page.evaluate((cfg) => window.scrapeList(cfg), config); + allResults = allResults.concat(results); + return allResults; } // Check if new items were loaded