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
BrowserProfileper 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-Propertieswith 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0afc4e41e7699b7beeb4ca5a9619d035eb1835b2bb35d6e3fea34ac52e6f77f5
|
|
| MD5 |
d73f9197ddc8cc269eb603243d1683d7
|
|
| BLAKE2b-256 |
4c024b52f560f3665e60e83b02a4859e6f64a633c6750fa1fc9d22587103fe68
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f49d3663bad087e7b04a9090e6fc840577b8ad4d619605a1255e634b0b45b4f
|
|
| MD5 |
cca157f3c11c88327c0449410bde8933
|
|
| BLAKE2b-256 |
c896573940a4aafb6ca61823c97053129322e40ac18623e56e5264f2a10f3c13
|