Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.
TypeScript apifyautomationcrawlercrawlingheadlessheadless-chromejavascriptnodejsnpmplaywrightpuppeteerscraperscrapingtypescriptweb-crawlerweb-crawlingweb-scraping
docs: use new `crawler.exportData()` helper in the homepage example
Martin Adámek31435868ed1a
diff --git a/website/src/pages/index.js b/website/src/pages/index.jsindex 93b141796..3642af5a6 100644--- a/website/src/pages/index.js+++ b/website/src/pages/index.js@@ -122,9 +122,8 @@ const crawler = new PlaywrightCrawler({// Add first URL to the queue and start the crawl.await crawler.run(['https://crawlee.dev']);-// Export the whole dataset to a single file in \`./storage/key_value_stores/result.csv\`.-const dataset = await crawler.getDataset();-await dataset.exportToCSV('result');+// Export the whole dataset to a single file in \`./result.csv\`.+await crawler.exportData('./result.csv');// Or work with the data directly.const data = await crawler.getData();