Skip to main content

Playwright drop-in for the Clearcote anti-fingerprint Chromium build. launch() returns a standard Playwright Browser backed by the verified Clearcote binary, which is auto-downloaded and SHA-256 checked.

Project description

clearcote (Python SDK)

A Playwright drop-in for Clearcote — the open, reproducible, anti-fingerprint Chromium build. launch() returns a standard Playwright Browser, so migrating is a one-line import change.

The verified Clearcote binary is auto-downloaded and SHA-256 checked on first use, then cached — no zips or paths to manage.

Platform: Clearcote currently ships a Windows x64 binary, so launch() runs on Windows. (The SDK will download + verify the binary on any OS — handy for packaging — but only launches it on Windows. Linux/macOS builds are on the roadmap.)

Install

pip install clearcote

playwright is pulled in as a dependency. You do not need to run playwright install (Clearcote uses its own browser binary, not Playwright's bundled Chromium).

Usage

from clearcote import launch

browser = launch(
    fingerprint="user-7423",        # per-eTLD+1 seed: same seed => same identity, different => unlinkable
    platform="windows",
    timezone="America/New_York",
    headless=False,
)
page = browser.new_page()
page.goto("https://abrahamjuliot.github.io/creepjs/")
# ... standard Playwright (sync API) from here ...
browser.close()

Already using Playwright? Swap p.chromium.launch(...) for launch(...) from clearcote — the returned object is a normal Playwright Browser. (One shared Playwright driver is started lazily and stopped at interpreter exit.)

Through a proxy (report the proxy's IP, not your host's)

browser = launch(
    fingerprint="user-7423",
    proxy={"server": "http://host:8080", "username": "u", "password": "p"},  # standard Playwright option
    timezone="America/New_York",
    webrtc_ip="203.0.113.10",       # make WebRTC report the proxy egress IP
)

Persistent profile

from clearcote import launch_persistent_context

context = launch_persistent_context(
    "./profile-7423",
    fingerprint="user-7423",
    platform="windows",
)

Fingerprint options

All optional. Anything not listed here is passed straight through to Playwright (headless, proxy, args, timeout, slow_mo, …).

Kwarg Switch Meaning
fingerprint --fingerprint Master seed (per-eTLD+1 farbling root). str or int.
platform --fingerprint-platform "windows" | "linux" | "macos".
platform_version --fingerprint-platform-version UA-CH platform version.
brand --fingerprint-brand "Chrome" | "Edge" | "Opera" | "Vivaldi".
brand_version --fingerprint-brand-version Brand version.
gpu_vendor --fingerprint-gpu-vendor WebGL UNMASKED vendor.
gpu_renderer --fingerprint-gpu-renderer WebGL UNMASKED renderer.
hardware_concurrency --fingerprint-hardware-concurrency navigator.hardwareConcurrency.
location --fingerprint-location "lat,lng" (only when geo permission is granted).
timezone --timezone IANA timezone, e.g. "America/New_York".
webrtc_ip --webrtc-ip WebRTC egress IP to report (your proxy IP).
disable_gpu_fingerprint --disable-gpu-fingerprint Turn off GPU/WebGL spoofing.

API

  • launch(**options) → Playwright Browser.
  • launch_persistent_context(user_data_dir, **options) → Playwright BrowserContext.
  • executable_path(executable_path=None, cache_dir=None, quiet=False)str — resolve (download/verify if needed) the chrome.exe path.
  • download(cache_dir=None, quiet=False)str — pre-fetch + verify without launching.
  • RELEASE — the pinned release metadata (tag, version, sha256).

Binary resolution & verification

launch() resolves the browser in this order:

  1. executable_path= argument, if given;
  2. CLEARCOTE_BINARY environment variable, if set;
  3. otherwise download the pinned release, verify its SHA-256 (the hash is baked into this package — it's the trust anchor), extract to a per-version cache, and verify the extracted chrome.exe hash too.

Cache location (override with CLEARCOTE_CACHE):

  • Windows: %LOCALAPPDATA%\clearcote\Cache\<tag>
  • macOS: ~/Library/Caches/clearcote/<tag>
  • Linux: ${XDG_CACHE_HOME:-~/.cache}/clearcote/<tag>

A SHA-256 mismatch is a hard error — the SDK refuses to run an unverified binary. You can independently confirm the published checksums and GPG signatures on the release page.

License

BSD-3-Clause. See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clearcote-0.1.2.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clearcote-0.1.2-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file clearcote-0.1.2.tar.gz.

File metadata

  • Download URL: clearcote-0.1.2.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for clearcote-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d2d24cdf2e58f7cd0575d958dbd1fe94c2658ba33ce88d5295aea41e80964a93
MD5 4347a622a839986df6b609f6e6e77efa
BLAKE2b-256 289fb061c51cafbc6a6fa3580d44fa1a649ed031bdc6a7c63897753ebc05a5a5

See more details on using hashes here.

File details

Details for the file clearcote-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: clearcote-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for clearcote-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 62e1de33bf3308587c7c2b4d9c40e0579626057db384bcf1385766affd5d58a0
MD5 8de976a393a104f9c5ac75d92502142f
BLAKE2b-256 020b624f0e6e67684f337383c2862695654c2b88f5e1da1ffd83d3e73a271434

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page