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.

Updated docs

Jan Curnd5a6e4349b68
diff --git a/src/request_list.js b/src/request_list.js
index 99b675a72..19b2c1cd4 100644
--- a/src/request_list.js
+++ b/src/request_list.js
@@ -30,8 +30,9 @@ export const SOURCES_PERSISTENCE_KEY = 'REQUEST_LIST_SOURCES';
*
* `RequestList` has an internal state where it stores information about which requests were already handled,
* which are in progress and which were reclaimed. The state may be automatically persisted to the default
- * key-value store by setting the `persistStateKey` option so that if the Node.js process is restarted,
- * the crawling can continue where it left off. For more details, see {@link KeyValueStore}.
+ * {@link KeyValueStore} by setting the `persistStateKey` option so that if the Node.js process is restarted,
+ * the crawling can continue where it left off. The automated persisting is launched upon receiving the `persistState`
+ * event that is periodically emitted by {@link events|Apify.events}.
*
* The internal state is closely tied to the provided sources (URLs) to validate it's position in the list
* after a migration or restart. Therefore, if the sources change, the state will become corrupted and