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.

Fix typos

Ondra Urbana49d7b2b27e7
diff --git a/src/puppeteers_request_interception.js b/src/puppeteer_request_interception.js
similarity index 98%
rename from src/puppeteers_request_interception.js
rename to src/puppeteer_request_interception.js
index f85241d86..4ad549df3 100644
--- a/src/puppeteers_request_interception.js
+++ b/src/puppeteer_request_interception.js
@@ -104,7 +104,7 @@ const handleRequest = (request, interceptRequestHandlers) => {
*
* @param {Page} page
* Puppeteer <a href="https://pptr.dev/#?product=Puppeteer&show=api-class-page" target="_blank"><code>Page</code></a> object.
- * @param {Function} middleware Request interception handler. See @TODO for more information.
+ * @param {Function} handler Request interception handler. See @TODO for more information.
* @return {Promise<undefined>}
*/
export const addInterceptRequestHandler = async (page, handler) => {
diff --git a/src/puppeteer_utils.js b/src/puppeteer_utils.js
index b36f40970..28043e745 100644
--- a/src/puppeteer_utils.js
+++ b/src/puppeteer_utils.js
@@ -9,7 +9,7 @@ import LruCache from 'apify-shared/lru_cache';
import { RequestQueue, RequestQueueLocal } from './request_queue';
import Request from './request';
import { enqueueLinks } from './enqueue_links';
-import { addInterceptRequestHandler, removeInterceptRequestHandler } from './puppeteers_request_interception';
+import { addInterceptRequestHandler, removeInterceptRequestHandler } from './puppeteer_request_interception';
const jqueryPath = require.resolve('jquery/dist/jquery.min');
const underscorePath = require.resolve('underscore/underscore-min');
diff --git a/test/puppeteers_request_interception.js b/test/puppeteer_request_interception.js
similarity index 100%
rename from test/puppeteers_request_interception.js
rename to test/puppeteer_request_interception.js