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
reworded.
Petr Patekae519ce15d34
diff --git a/src/session_pool/session.js b/src/session_pool/session.jsindex 3f0ff1471..ee59abef2 100644--- a/src/session_pool/session.js+++ b/src/session_pool/session.js@@ -10,7 +10,7 @@ import EVENTS from './events';/*** Class aggregating data for session.* Sessions are used to store information such as cookies and can be used for generating fingerprints and proxy sessions.- * You can think of a session as one specific user.+ * You can think of a session as about one specific user.* Session internal state can be enriched with custom user data for example some authorization tokens and specific headers in general.*/export class Session {diff --git a/src/session_pool/session_pool.js b/src/session_pool/session_pool.jsindex 176b80e07..28a4a4716 100644--- a/src/session_pool/session_pool.js+++ b/src/session_pool/session_pool.js@@ -59,12 +59,12 @@ export class SessionPool extends EventEmitter {* @param options* @param options.maxPoolSize {Number} - Maximum size of the pool.* Indicates how many sessions are rotated.- * @param options.maxSessionAgeSecs {Number} - Number of seconds after which the session is marked as expired.+ * @param options.maxSessionAgeSecs {Number} - Number of seconds after which the session is considered as expired.* @param options.maxSessionUsageCount {Number} - Maximum number of uses per session.* It useful, when you know the site rate-limits, so you can retire the session before it gets blocked and let it cool down.* @param options.persistStateKeyValueStoreId {String} - Name or Id of `KeyValueStore` where is the `SessionPool` state stored.* @param options.persistStateKey {String} - Session pool persists it's state under this key in Key value store.- * @param options.createSessionFunction {function} - Custom function that should return Session instance.+ * @param options.createSessionFunction {function} - Custom function that should return `Session` instance.*/constructor(options = {}) {const {@@ -182,7 +182,7 @@ export class SessionPool extends EventEmitter {/*** Persists the current state of the `SessionPool` into the default {@link KeyValueStore}.- * The state is persisted automatically in regular intervals, but calling this method manually+ * The state is persisted automatically in regular intervals.** @return {Promise}*/