Skip to main content

pywinhttp

version license python_version coverage

a python http client implemented based on the winhttp library.

Using it to create web crawlers can avoid Cloudflare's TLS fingerprinting.

because the winhttp library is the underlying implementation of the Edge browser.

its TLS fingerprint is consistent with the Edge browser.

it can only run on the Windows platform.

this project uses python's built-in ctypes to call winhttp.dll directly, with no dependencies on third-party packages.

Install

$ pip install pywinhttp

Using

import pywinhttp

user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36 Edg/146.0.0.0"
client = pywinhttp.Session(user_agent)

url = "https://public-wax-on.wax.io/wam/sign"

resp = client.get(url)
print(resp.text)

post_data = {
    "serializedTransaction": "xxxxxxxxxxxxxxxxxxxxxxx",
    "description": "jwt is insecure",
    "freeBandwidth": False,
    "website": "play.alienworlds.io",
}
headers = {"x-access-token": "xxxxxxxxxxxxxxxxxxxxxxx"}
resp = client.post(url, json = post_data, headers = headers)
print(resp.text)

Metadata

Release files for pywinhttp 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pywinhttp 1.0.1
File Size Uploaded Provenance Actions
pywinhttp-1.0.1.tar.gz 5.9 kB Without provenance Details for pywinhttp-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pywinhttp 1.0.1
File Interpreter ABI Platform Actions
pywinhttp-1.0.1-py3-none-any.whl Python 3 none any Details for pywinhttp-1.0.1-py3-none-any.whl

Total release size: 12.6 kB

Release files / pywinhttp-1.0.1.tar.gz

Download URL pywinhttp-1.0.1.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f6cd5d70202ba47d04e71081167ec3481f30690240d3d005cbad051ef104d873
BLAKE2b-256 checksum
How to use checksums
8468fb0f016512aa3e18994b23145792bd90c6755901d62c5db5de637da14810
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / pywinhttp-1.0.1-py3-none-any.whl

Download URL pywinhttp-1.0.1-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
53c61a650afa1f6e7755dbd6bd0ad915322ae55a7240e89f26f45b2cdd2a7d2c
BLAKE2b-256 checksum
How to use checksums
46686c8a335717cbfb9a952b8ff6dd18fa0d08a2b85ce0c25779e16140f95759
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Security for pywinhttp 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page