Skip to main content

a python http client implemented based on the winhttp library

Project description

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.

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)

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

pywinhttp-1.0.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

pywinhttp-1.0.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file pywinhttp-1.0.0.tar.gz.

File metadata

  • Download URL: pywinhttp-1.0.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for pywinhttp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 19245bd5e0f66c2c1c1707e89222694c5e53999d7f0eeec39335cb0eec9a2d5e
MD5 765e2008794d460ec8fc55d3ef7e63f2
BLAKE2b-256 af5a8a4d1deb3bb5e2931fc5e425b1b07a9e54d5d3f73f8e159c4a48742b107d

See more details on using hashes here.

File details

Details for the file pywinhttp-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pywinhttp-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for pywinhttp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b87dc5e91d1e157ba7bae7eb1407e439af8a4c227f2378e722b89e4ec0ea245d
MD5 cf7507f9cd1562f4010f5a6d3af831fd
BLAKE2b-256 c148a5f3b8b3a957aafaa911af0310a087d0b5591a36f0a6f1870d721d039bf8

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