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
Merge branch 'develop' into feature/queue_consistency
Marek Trunkát0e954d8f9832
diff --cc CHANGELOG.mdindex 0d71ed940,7d184f8f0..f51b43a27--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -1,6 -1,21 +1,22 @@@- xxx+ xxxxxxxxxxxxxxxxxxx+ ===================+ - Stringification to JSON of actor input in `Apify.call()`, `Apify.callTask()` and `Apify.metamorph()`+ now also supports functions via `func.toString()`. The same holds for record body in `setValue()`+ method of key-value store.++ 0.14.5 / 2019-05-06+ ===================+ - Update Puppeteer to 1.15.0.++ 0.14.4 / 2019-05-06+ ===================+ - Added the `stealth` option `launchPuppeteerOptions` which decreases headless browser detection chance.+ - **DEPRECATED**: `Apify.utils.puppeteer.hideWebDriver` use `launchPuppeteerOptions.stealth` instead.+ - `CheerioCrawler` now parses HTML using streams. This improves performance and memory usage in most cases.++ 0.14.3 / 2019-05-06===================+- Request queue now allows crawlers to finish quickly without waiting in a case that queue was used by a single client.- Better logging of errors in `Apify.main()`0.14.2 / 2019-04-25diff --cc src/request_queue.jsindex deb572389,6b7136864..0d81708cb--- a/src/request_queue.js+++ b/src/request_queue.js@@@ -5,12 -6,10 +6,10 @@@ import { checkParamOrThrow } from 'apifimport LruCache from 'apify-shared/lru_cache';import ListDictionary from 'apify-shared/list_dictionary';import { ENV_VARS, LOCAL_STORAGE_SUBDIRS, REQUEST_QUEUE_HEAD_MAX_LIMIT } from 'apify-shared/consts';-import { checkParamPrototypeOrThrow } from 'apify-shared/utilities';+import { delayPromise, checkParamPrototypeOrThrow, cryptoRandomObjectId } from 'apify-shared/utilities';import log from 'apify-shared/log';- import Promise from 'bluebird';- import crypto from 'crypto';import Request from './request';- import { ensureDirExists, apifyClient, openRemoteStorage, openLocalStorage, ensureTokenOrLocalStorageEnvExists } from './utils';+ import { sleep, ensureDirExists, apifyClient, openRemoteStorage, openLocalStorage, ensureTokenOrLocalStorageEnvExists } from './utils';export const LOCAL_STORAGE_SUBDIR = LOCAL_STORAGE_SUBDIRS.requestQueues;const MAX_OPENED_QUEUES = 1000;