Jon
CACrawlee & Apify
•Created by absent-sapphire on 4/11/2025 in #crawlee-js
Browerless + Crawlee
Reviewing the source:
https://github.com/apify/crawlee/blob/master/packages/puppeteer-crawler/src/internals/puppeteer-launcher.ts
export async function launchPuppeteer(
launchContext?: PuppeteerLaunchContext,
config = Configuration.getGlobalConfig(),
): Promise<Browser> {
const puppeteerLauncher = new PuppeteerLauncher(launchContext, config);
return puppeteerLauncher.launch();
}
It looks like crawlee uses "launch" not "connect"
const browser = await puppeteer.connect({
browserWSEndpoint: 'ws://localhost:3000',
});
https://github.com/browserless/browserless?tab=readme-ov-file#puppeteer
I am interested in using browserless as well, but not seeing how to do it.
6 replies