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
fix parameter type on utils.puppeteer.blockRequests (#568)
Paulo Cesar002c77e2c010
diff --git a/docs/api/puppeteer.md b/docs/api/puppeteer.mdindex 4d2e44207..874e1c51a 100644--- a/docs/api/puppeteer.md+++ b/docs/api/puppeteer.md@@ -545,7 +545,7 @@ await page.goto('https://cnn.com');and end of the pattern. This limitation is enforced by the DevTools protocol.<code>.png</code> is the same as <code>*.png*</code>.</p></td></tr><tr>-<td><code>[options.extraUrlPatterns]</code></td><td><code>boolean</code></td>+<td><code>[options.extraUrlPatterns]</code></td><td><code>Array<string></code></td></tr><tr><td colspan="3"><p>If you just want to append to the default blocked patterns, use this property.</p>diff --git a/src/puppeteer_utils.js b/src/puppeteer_utils.jsindex 0cdff4d9b..ed382497d 100644--- a/src/puppeteer_utils.js+++ b/src/puppeteer_utils.js@@ -235,7 +235,7 @@ const enqueueRequestsFromClickableElements = async (page, selector, purls, reque* Only `*` can be used as a wildcard. It is also automatically added to the beginning* and end of the pattern. This limitation is enforced by the DevTools protocol.* `.png` is the same as `*.png*`.- * @param {boolean} [options.extraUrlPatterns]+ * @param {string[]} [options.extraUrlPatterns]* If you just want to append to the default blocked patterns, use this property.* @return {Promise}* @memberOf puppeteer