human_requests.browsers.browser_master

Attributes

Classes

BrowserMaster

Family aggregator. Holds the currently selected backend and delegates launch/close.

Module Contents

Engine[source]
class BrowserMaster(
*,
engine: Engine = 'chromium',
stealth: bool = False,
launch_opts: Dict[str, Any] | None = None,
)[source]

Family aggregator. Holds the currently selected backend and delegates launch/close. Always returns a Browser. No persistent context.

property launch_opts: Dict[str, Any][source]
property engine: Engine[source]
property stealth: bool[source]
async start() None[source]

Idempotent launch of the current family. Switches family if necessary.

async close(
*,
camoufox: bool = True,
playwright: bool = True,
) None[source]

Selective shutdown: camoufox → CamoufoxFamily; playwright → Playwright/Patchright.

async new_context(
*,
storage_state: playwright.async_api.StorageState | str | Path | None = None,
) playwright.async_api.BrowserContext[source]