apply_fingerprint (tab)

pydoll · automation, fingerprint-spoofing, anti-detection, cdp, js-injection

Applies a browser fingerprint profile to a tab, overriding identity signals via CDP and JS injection to evade detection.

    async def apply_fingerprint(
        self, fingerprint: FingerprintConfig, *, cross_origin_iframes: bool = True
    ) -> None:
        """Apply a browser fingerprint profile to this tab.

        Delegates to a per-tab :class:`FingerprintApplier` (created once and
        reused), which overrides browser identity signals via CDP commands and
        JavaScript injection and replays them on Web Worker targets and cross-site
        iframes. Call before navigating to any page for full effect, since JS
        overrides register via ``Page.addScriptToEvaluateOnNewDocument``.

        Args:
            fingerprint: Fingerprint configuration. Only specified fields
                are overridden; unspecified fields keep real browser values.
            cross_origin_iframes: When true (defaul

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key