fix: remove flexible param

This commit is contained in:
karishmas6
2024-08-16 18:21:34 +05:30
parent d48f047742
commit 87476c3e35

View File

@@ -291,7 +291,7 @@ export default class Interpreter extends EventEmitter {
await this.options.serializableCallback(scrapeResult); await this.options.serializableCallback(scrapeResult);
}, },
scrapeList: async (config: { listSelector: string, fields: any, limit?: number, flexible?: boolean, pagination: any }) => { scrapeList: async (config: { listSelector: string, fields: any, limit?: number, pagination: any }) => {
await this.ensureScriptsLoaded(page); await this.ensureScriptsLoaded(page);
const scrapeResults: Record<string, any>[] = await page.evaluate((cfg) => window.scrapeList(cfg), config); const scrapeResults: Record<string, any>[] = await page.evaluate((cfg) => window.scrapeList(cfg), config);
await this.options.serializableCallback(scrapeResults); await this.options.serializableCallback(scrapeResults);