Skip to main content
Version: Next

remotePlaywrightBrowserPool

Callable


  • The RemoteBrowserPool counterpart of playwrightBrowserPool: connects to a remote browser service (Browserbase, Browserless, Steel, ...) with a Playwright plugin derived from launchContext.

    A PlaywrightCrawler accepts the same connection details directly via remoteBrowser; reach for this factory when you also need to tune the wrapping pool, or to share one remote pool between crawlers.

    Example usage:

    const crawler = new PlaywrightCrawler({
    browserPool: remotePlaywrightBrowserPool({
    endpoint: 'wss://production-sfo.browserless.io?token=xxx',
    maxOpenBrowsers: 2,
    browserPoolOptions: { useFingerprints: false },
    }),
    requestHandler: async ({ page }) => { ... },
    });

    Parameters

    Returns RemoteBrowserPool<Page>