fix: default export

This commit is contained in:
karishmas6
2024-04-19 02:23:46 +05:30
parent 614a600b90
commit 0bc497b933

View File

@@ -17,8 +17,12 @@ async function scrapeData(url, selectors, waitForSeconds = 2) {
} }
console.log('Scraped data:', scrapedData); console.log('Scraped data:', scrapedData);
return { data: scrapedData };
}, },
}); });
await crawler.run([{ url }]); await crawler.run([{ url }]);
} }
export default scrapeData