Skip to content

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.

added async

Petr Patekcb0691d4df94
diff --git a/src/dataset.js b/src/dataset.js
index 80e55eed8..138230718 100644
--- a/src/dataset.js
+++ b/src/dataset.js
@@ -270,7 +270,7 @@ export class Dataset {
* the legacy Apify Crawler product and it's not recommended to use it in new integrations.
* @return {Promise<Object>}
*/
- getData(options = {}) {
+ async getData(options = {}) {
// TODO (JC): Do we really need this function? It only works with API but not locally,
// and it's just 1:1 copy of what apify-client provides, and returns { items } which can
// be a Buffer ... it doesn't really make much sense