From c2db3cc720bcb9d982220aae4a04dbf1439902a0 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Tue, 20 Aug 2024 23:16:11 +0530 Subject: [PATCH] fix: whitespace format --- maxun-core/src/interpret.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/maxun-core/src/interpret.ts b/maxun-core/src/interpret.ts index 0cfa2309..b03ed140 100644 --- a/maxun-core/src/interpret.ts +++ b/maxun-core/src/interpret.ts @@ -406,26 +406,20 @@ export default class Interpreter extends EventEmitter { allResults = allResults.concat(newResults); - if (config.limit && allResults.length >= config.limit) { return allResults.slice(0, config.limit); } - const nextButton = await page.$(config.pagination.selector); if (!nextButton) { return allResults; // No more pages to scrape } - - await Promise.all([ nextButton.click(), page.waitForNavigation({ waitUntil: 'networkidle' }) ]); - await page.waitForTimeout(1000); - break; case 'clickLoadMore': const loadMoreButton = await page.$(config.pagination.selector);