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
Deleted unused function from crawler utils (#893)
petrpatek83aad35b4bc7
diff --git a/src/crawlers/crawler_utils.js b/src/crawlers/crawler_utils.jsindex 0b6c31699..ac9ef5ad0 100644--- a/src/crawlers/crawler_utils.js+++ b/src/crawlers/crawler_utils.js@@ -1,5 +1,3 @@-import { URL } from 'url';-/*** Handles timeout request* @param {Session} session@@ -26,15 +24,3 @@ export function throwOnBlockedRequest(session, statusCode) {throw new Error(`Request blocked - received ${statusCode} status code.`);}}--export function getSessionIdFromProxyUrl(proxyUrl) {- const parsedUrl = new URL(proxyUrl);- const { username } = parsedUrl.username;- if (!username) {- return;- }- const parts = username.split(',');- const sessionPart = parts.find((part) => part.includes('session-'));-- return sessionPart && sessionPart.replace('session-', '');-}