human_requests.browsers.families

Submodules

Classes

CamoufoxFamily

Camoufox — a separate runtime. Launched as a context manager.

PatchrightFamily

Patchright — drop-in replacement for Playwright, supports only Chromium.

PlaywrightFamily

Standard Playwright (with stealth wrapper on demand).

Package Contents

class CamoufoxFamily[source]

Camoufox — a separate runtime. Launched as a context manager. Stealth is NOT needed/allowed (antibot is built-in).

property name: human_requests.browsers.families.base.Family

Family name.

property browser: playwright.async_api.Browser | None

Current Browser or None if not started.

async start(
cfg: DesiredConfig,
) None[source]

Idempotent launch/restart according to cfg.

async close() None[source]

Close all family resources (browser + runtime).

class PatchrightFamily[source]

Patchright — drop-in replacement for Playwright, supports only Chromium. Stealth is NOT needed/allowed (it is already built-in).

property name: human_requests.browsers.families.base.Family

Family name.

property browser: playwright.async_api.Browser | None

Current Browser or None if not started.

async start(
cfg: DesiredConfig,
) None[source]

Idempotent launch/restart according to cfg.

async close() None[source]

Close all family resources (browser + runtime).

class PlaywrightFamily[source]

Standard Playwright (with stealth wrapper on demand). Restarts only what has changed: PW engine when stealth changes, browser when engine/headless/launch_opts change.

property name: human_requests.browsers.families.base.Family

Family name.

property browser: playwright.async_api.Browser | None

Current Browser or None if not started.

async start(
cfg: DesiredConfig,
) None[source]

Idempotent launch/restart according to cfg.

async close() None[source]

Close all family resources (browser + runtime).