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