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
Build docs
Ondra Urban4a88a1764031
diff --git a/docs/api/puppeteer.md b/docs/api/puppeteer.mdindex ce139243f..1fd017d48 100644--- a/docs/api/puppeteer.md+++ b/docs/api/puppeteer.md@@ -124,12 +124,13 @@ await Apify.utils.enqueueLinksByClickingElements({<p> If <code>pseudoUrls</code> is an empty array, <code>null</code> or <code>undefined</code>, then the functionenqueues all links found on the page.</p></td></tr><tr>-<td><code>[options.updateRequestFunction]</code></td><td><code>function</code></td><td></td>+<td><code>[options.transformRequestFunction]</code></td><td><code>function</code></td><td></td></tr><tr>-<td colspan="3"><p>Just before a new <a href="request"><code>Request</code></a> is enqueued to the <a href="requestqueue"><code>RequestQueue</code></a>, this function can be used to modify- its contents such as <code>userData</code>, <code>payload</code> or, most importantly <code>uniqueKey</code>. This is useful when necessary- to enqueue multiple <code>Requests</code> to the queue that share the same URL, but differ in methods or payloads.</p>+<td colspan="3"><p>Just before a new <a href="request"><code>Request</code></a> is enqueued to the <a href="requestqueue"><code>RequestQueue</code></a>, this function can be used to remove it+ or modify its contents such as <code>userData</code>, <code>payload</code> or, most importantly <code>uniqueKey</code>. This is useful when you need+ to enqueue multiple <code>Requests</code> to the queue that share the same URL, but differ in methods or payloads,+ or to dynamically update or create <code>userData</code>.</p><p> For example: by generating your own <code>uniqueKey</code> from a combination of <code>url</code>, <code>method</code> and <code>payload</code> you enable crawlingof websites that navigate using form submits (POST requests).</p></td></tr><tr>