Browser Pool
Try for free
No credit card required
View all Actors
Browser Pool
marco.gullo/browser-pool
Try for free
No credit card required
A Standby Actor for providing a pool of on-demand browsers, accessible through CDP.
A Standby Actor for providing a pool of on-demand browsers, accessible through CDP.
How to use it
1import { chromium } from 'playwright'; 2 3// The Standby URL with `wss` instead of `https` 4const wsEndpoint = 'wss://marco-gullo--browser-pool.apify.actor?token=$TOKEN&other_params...' 5const browser = await chromium.connect(wsEndpoint)
Available parameters
The search parameters are designed to be compatible with browserless.io.
proxy
: eitherdatacenter
orresidential
; selects the corresponding default proxy groups.proxyGroups
: stringified JSON of an array of Apify proxy groups, e.g.,["RESIDENTIAL5"]
.proxyCountry
: ISO 3166 country code.launch
: stringified JSON containing the following properties:- headless: either
true
orfalse
, passed as option to Playwright. - args: array of arguments to pass to Chromium, e.g.,
["--window-size=1920,1080", "--lang=en-US"]
.
- headless: either
ignoreDefaultArgs
: eithertrue
orfalse
, if true only uses the passed browser arguments.timeout
: maximum allowed time to spawn the browser server, in milliseconds.ttl
: time to live, in milliseconds, of the browser session after the socket has been closed.
TODO:
blockAds
: may use a browser extension.launch.stealth
: may use Apify fingerprinting to avoid blocks.
TODO: implement the ability to set options using headers, to be compatible with browserbase.com.
TODO
- Expose CDP-interface via Standby mode
- Run an auto-scaled pool of web browsers and provide access to them via CDP
- Pre-configure with our browser fingerprinting and proxies to reduce blocking
Bonus:
- Playwright - automatically select a client-matching version
Support
- Playwright - Chromium
- Playwright - Chrome
- Playwright - Firefox
- Playwright - WebKit
- Puppeteer - Chromium
- Puppeteer - Chrome
- Bare CDP - Chromium
- Bare CDP - Chrome
Developer
Maintained by Community
Actor metrics
- 3 monthly users
- 1 star
- 33.8% runs succeeded
- Created in Aug 2024
- Modified 3 days ago
Categories