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.

[DOCS] Added link to session management in session pool docs (#574)

petrpatek724dff9c7c6d
diff --git a/docs/api/SessionPool.md b/docs/api/SessionPool.md
index 08ef31400..726e1cb70 100644
--- a/docs/api/SessionPool.md
+++ b/docs/api/SessionPool.md
@@ -6,7 +6,8 @@ title: SessionPool
<a name="SessionPool"></a>
Handles the sessions rotation, creation and persistence. Creates a pool of [`Session`](session) instances, that are randomly rotated. When some
-session is marked as blocked. It is removed and new one is created instead.
+session is marked as blocked. It is removed and new one is created instead. Learn more in the
+[`Session management guide`](../guides/sessionmanagement).
Session pool is by default persisted in default [`KeyValueStore`](keyvaluestore). If you want to have one pool for all runs you have to specify
`persistStateKeyValueStoreId`.
diff --git a/src/session_pool/session_pool.js b/src/session_pool/session_pool.js
index 3e4215b71..b17a92395 100644
--- a/src/session_pool/session_pool.js
+++ b/src/session_pool/session_pool.js
@@ -29,6 +29,7 @@ import { ACTOR_EVENT_NAMES_EX } from '../constants';
* Handles the sessions rotation, creation and persistence.
* Creates a pool of {@link Session} instances, that are randomly rotated.
* When some session is marked as blocked. It is removed and new one is created instead.
+ * Learn more in the [`Session management guide`](../guides/sessionmanagement).
*
* Session pool is by default persisted in default {@link KeyValueStore}.
* If you want to have one pool for all runs you have to specify `persistStateKeyValueStoreId`.
diff --git a/types/session_pool/session_pool.d.ts b/types/session_pool/session_pool.d.ts
index f0458804e..61ba68f54 100644
--- a/types/session_pool/session_pool.d.ts
+++ b/types/session_pool/session_pool.d.ts
@@ -17,6 +17,7 @@
* Handles the sessions rotation, creation and persistence.
* Creates a pool of {@link Session} instances, that are randomly rotated.
* When some session is marked as blocked. It is removed and new one is created instead.
+ * Learn more in the [`Session management guide`](../guides/sessionmanagement).
*
* Session pool is by default persisted in default {@link KeyValueStore}.
* If you want to have one pool for all runs you have to specify `persistStateKeyValueStoreId`.