human_requests.impersonation¶
Classes¶
Policy for selecting a profile in ImpersonationConfig |
|
Spoofing settings for curl_cffi and browser header generation. |
Module Contents¶
- class ImpersonationConfig[source]¶
Spoofing settings for curl_cffi and browser header generation.
Example:
cfg = ImpersonationConfig( policy=Policy.RANDOM_EACH_REQUEST, browser_family=["chrome", "edge"], min_version=120, geo_country="DE", sync_with_engine=True, )
- browser_family: str | Sequence[str] | None = None[source]¶
Browser family (chrome, edge, opera, firefox, safari)
- custom_filter: Callable[[str], bool][source]¶
Custom script for filtering impersonation profiles. Must return a bool
- sync_with_engine: bool = True[source]¶
Restrict to the current Playwright engine family (chromium, firefox, webkit), or camoufox=firefox