Skip to main content

Realistic Chrome browser header generation with TLS fingerprinting for HTTP clients

Project description

chrome-headers

Realistic Chrome browser header generation with TLS fingerprinting for HTTP clients. Generates deterministic browser profiles with accurate headers, cookies, and client metadata — making automated HTTP requests indistinguishable from a real browser session.

Install

pip install chrome-headers

Features

  • Deterministic BrowserProfile per client token (consistent UA, locale, timezone, resolution)
  • Auto-fetches and caches API build numbers from live JS assets
  • Fetches real fingerprint + cookies from API endpoints
  • Builds accurate X-Super-Properties with full client metadata
  • Complete header sets for REST, multipart, WebSocket, and analytics endpoints
  • Pre-built payload helpers for common HTTP operations

Usage

from chrome_headers import HeaderSpoofer

spoofer = HeaderSpoofer("your_token_here")

# REST headers
headers = spoofer.get_headers()

# Custom referer + context
headers = spoofer.get_headers(
    referer="https://example.com/channels/123/456",
    context_location="chat_input",
)

# WebSocket headers
ws_headers = spoofer.get_websocket_headers()

# Multipart (file upload)
mp_headers = spoofer.get_multipart_headers("multipart/form-data; boundary=----boundary")

# Build a message payload
payload = spoofer.build_message_payload("hello world")

# Full send_message bundle (url + headers + json)
bundle = spoofer.send_message(channel_id="123456", content="hi", guild_id="789")

Methods

Method Description
get_headers(...) Standard REST headers with Authorization
get_websocket_headers() Headers for WS upgrade handshake
get_multipart_headers(content_type) Headers for file/multipart uploads
get_analytics_headers() Headers for analytics endpoints
fetch_fingerprint() Fetch and cache fingerprint + cookies
refresh_build_number() Force re-fetch of build number
build_message_payload(...) Message JSON with optional reply, attachments, stickers
build_status_payload(...) Status JSON
build_profile_payload(...) Profile patch JSON
send_message(...) Ready-to-use {url, headers, json} bundle
join_guild(invite_code) Join guild bundle
add_friend(username) Add friend bundle
patch_avatar(image_bytes) Avatar patch bundle

License

Source Available — free to use, not to steal. See LICENSE.
Made by nox · github.com/pulbv

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

chrome_headers-2.0.0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

chrome_headers-2.0.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file chrome_headers-2.0.0.tar.gz.

File metadata

  • Download URL: chrome_headers-2.0.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for chrome_headers-2.0.0.tar.gz
Algorithm Hash digest
SHA256 0afc4e41e7699b7beeb4ca5a9619d035eb1835b2bb35d6e3fea34ac52e6f77f5
MD5 d73f9197ddc8cc269eb603243d1683d7
BLAKE2b-256 4c024b52f560f3665e60e83b02a4859e6f64a633c6750fa1fc9d22587103fe68

See more details on using hashes here.

File details

Details for the file chrome_headers-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: chrome_headers-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for chrome_headers-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8f49d3663bad087e7b04a9090e6fc840577b8ad4d619605a1255e634b0b45b4f
MD5 cca157f3c11c88327c0449410bde8933
BLAKE2b-256 c896573940a4aafb6ca61823c97053129322e40ac18623e56e5264f2a10f3c13

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