From 0bc497b933000d061a20570ef7dbe860f47125bf Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 19 Apr 2024 02:23:46 +0530 Subject: [PATCH] fix: default export --- scraper/src/scraper.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scraper/src/scraper.js b/scraper/src/scraper.js index 66adc97a..87ab9ee6 100644 --- a/scraper/src/scraper.js +++ b/scraper/src/scraper.js @@ -17,8 +17,12 @@ async function scrapeData(url, selectors, waitForSeconds = 2) { } console.log('Scraped data:', scrapedData); + + return { data: scrapedData }; }, }); await crawler.run([{ url }]); -} \ No newline at end of file +} + +export default scrapeData \ No newline at end of file