feat: scrape for default case
This commit is contained in:
@@ -416,7 +416,9 @@ export default class Interpreter extends EventEmitter {
|
|||||||
await loadMoreButton.click();
|
await loadMoreButton.click();
|
||||||
break;
|
break;
|
||||||
default:
|
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
|
// Check if new items were loaded
|
||||||
|
|||||||
Reference in New Issue
Block a user