Skip to main content

HTTP client that can impersonate web browsers, mimicking their headers and `TLS/JA3/JA4/HTTP2` fingerprints

Project description

Python >= 3.8 Downloads CI

Pyreqwest_impersonate

HTTP client that can impersonate web browsers, mimicking their headers and TLS/JA3/JA4/HTTP2 fingerprints.
Binding to the Rust reqwest_impersonate library.

Provides precompiled wheels:

  • Linux: amd64, aarch64.
  • Windows: amd64.
  • MacOS: amd64, aarch64.

Installation

pip install -U pyreqwest_impersonate

Usage

I. Client

A blocking HTTP client that can impersonate web browsers.

class Client:
    """Initializes a blocking HTTP client that can impersonate web browsers.
    
    Args:
        headers (dict, optional): headers to send with requests. If `impersonate` is set, this will be ignored.
        timeout (float, optional): HTTP request timeout in seconds. Default is 30.
        proxy (str, optional): Proxy URL for HTTP requests. Example: "socks5://127.0.0.1:9150". Default is None.
        impersonate (str, optional): Entity to impersonate. Example: "chrome_123". Default is None.
            Chrome: "chrome_99","chrome_100","chrome_101","chrome_104","chrome_105","chrome_106","chrome_108", 
                "chrome_107","chrome_109","chrome_114","chrome_116","chrome_117","chrome_118","chrome_119", 
                "chrome_120","chrome_123"
            Safari: "safari_12","safari_15_3","safari_15_5","safari_15_6_1","safari_16","safari_16_5","safari_17_2_1"
            OkHttp: "okhttp_3_9","okhttp_3_11","okhttp_3_13","okhttp_3_14","okhttp_4_9","okhttp_4_10","okhttp_5"
            Edge: "edge_99","edge_101","edge_120"
        redirects (int, optional): number of redirects. If set to 0|False, no redirects will be followed. Default is 10.
        verify (bool, optional): verify SSL certificates. Default is True.
        http1 (bool, optional): use only HTTP/1.1. Default is None.
        http2 (bool, optional): use only HTTP/2. Default is None.
    """

Example:

from pyreqwest_impersonate import Client

client = Client(impersonate="chrome_123")
resp = client.get("https://tls.peet.ws/api/all")
print(resp.text)
print(resp.status_code)
print(resp.url)
print(resp.headers)
print(resp.cookies)

II. AsyncClient

TODO

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

pyreqwest_impersonate-0.1.2.tar.gz (19.6 kB view details)

Uploaded Source

Built Distributions

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

pyreqwest_impersonate-0.1.2-cp312-none-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.12Windows x86-64

pyreqwest_impersonate-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

pyreqwest_impersonate-0.1.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

pyreqwest_impersonate-0.1.2-cp312-cp312-macosx_11_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pyreqwest_impersonate-0.1.2-cp312-cp312-macosx_10_12_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

pyreqwest_impersonate-0.1.2-cp311-none-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.11Windows x86-64

pyreqwest_impersonate-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

pyreqwest_impersonate-0.1.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

pyreqwest_impersonate-0.1.2-cp311-cp311-macosx_11_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pyreqwest_impersonate-0.1.2-cp311-cp311-macosx_10_12_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

pyreqwest_impersonate-0.1.2-cp310-none-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.10Windows x86-64

pyreqwest_impersonate-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

pyreqwest_impersonate-0.1.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.8 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

pyreqwest_impersonate-0.1.2-cp310-cp310-macosx_11_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pyreqwest_impersonate-0.1.2-cp310-cp310-macosx_10_12_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

pyreqwest_impersonate-0.1.2-cp39-none-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.9Windows x86-64

pyreqwest_impersonate-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

pyreqwest_impersonate-0.1.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.8 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

pyreqwest_impersonate-0.1.2-cp38-none-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.8Windows x86-64

pyreqwest_impersonate-0.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

pyreqwest_impersonate-0.1.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.8 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ ARM64

File details

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

File metadata

File hashes

Hashes for pyreqwest_impersonate-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3ff40ad9730718b3c587ad3c07797d05a6d0fef47fe47e001bf9372ecf7e9b02
MD5 57f5eedaff3e5880d0a71bd340c40fcf
BLAKE2b-256 e5dcd4fb172246182b41ee86df47dd5f5ea3f6ded4c7be0f7ff891ace9a1feda

See more details on using hashes here.

File details

Details for the file pyreqwest_impersonate-0.1.2-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyreqwest_impersonate-0.1.2-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ce0f0a04e3db9f0ce73f4be6ea50cbe5254b393135ebe6c27f6f202f8d4f4569
MD5 a109d122f1dcd1908e45e3f891eab170
BLAKE2b-256 b593498e022da1f634f07d6750a04838ae1b94b1a99b73feb213a2c76d4f479f

See more details on using hashes here.

File details

Details for the file pyreqwest_impersonate-0.1.2-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyreqwest_impersonate-0.1.2-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 35fd23393085e4f1294782462e425c3f2c2029d74fed73868a9cc8e04d689994
MD5 455da3b5d3b1c747b44228fafe76cfa1
BLAKE2b-256 7d7fe0715dcfaae6156fec8d749c990383ccd9e778d420fed2a63df8d7b4d4ea

See more details on using hashes here.

File details

Details for the file pyreqwest_impersonate-0.1.2-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyreqwest_impersonate-0.1.2-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1ea08432a4d02d4edcdc70d5f0d02d5664a0aaf8ac5e1c46c99893fef2a125dd
MD5 9a80a6a2e247542107ffba4036e7f414
BLAKE2b-256 dbecbb79ce30c9d1048b3f3586c6612f682fd1e8910668382c5884930c9fb1a3

See more details on using hashes here.

File details

Details for the file pyreqwest_impersonate-0.1.2-cp312-none-win_amd64.whl.

File metadata

File hashes

Hashes for pyreqwest_impersonate-0.1.2-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 fec0bae775d1d887bfc50a0778233c97bb187fefe81c22cc1010e7b3e17faf83
MD5 43356a8cf1f978193f7316f67412d7ed
BLAKE2b-256 03bb15417c7e9604724c1eaa3df0c83396b024e5f8963da1e7410cab428f3280

See more details on using hashes here.

File details

Details for the file pyreqwest_impersonate-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyreqwest_impersonate-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f63eb9dfe07a163bda4e00d3d41e9b6e9ad07162fe7e319fc692cba36c3bf5f3
MD5 8dee5c3a4281b29e115714a7581a2674
BLAKE2b-256 6dd902e71696e4d5e4d7a79f166398a9da6ae56950da1ac6023aeb776af830b2

See more details on using hashes here.

File details

Details for the file pyreqwest_impersonate-0.1.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyreqwest_impersonate-0.1.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c0d5dfbd22ec23e6e705a1dd3a9e2a2b4cba561a37541a5d0e6bc9056ebce61c
MD5 b6eaee6c1e0a5586ef85fc9e5d245838
BLAKE2b-256 88c523f382352764828025e20367a6ee0d0c0f639ce98c0e2771b7b23f400ed0

See more details on using hashes here.

File details

Details for the file pyreqwest_impersonate-0.1.2-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyreqwest_impersonate-0.1.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b13828cfd7250ae5181a7d4322c45611d496cdbf616d6855136e3f49d5952e58
MD5 18be1530b3dd3baf5377f6e103437b1d
BLAKE2b-256 5e523056d482905f769f5c5629378e7d22d7b13e0c90003254012136eda53ef5

See more details on using hashes here.

File details

Details for the file pyreqwest_impersonate-0.1.2-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for pyreqwest_impersonate-0.1.2-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8b7cee1879f5004a922de2be93ba810ca4336bacfa0eceda4f2502c0165f6993
MD5 eff876c06a34265ba7798e2984c17ae6
BLAKE2b-256 fa96efd8652d0227f5a2a807cea9440127dc7a7fbf2a529c36dc6185ba851b73

See more details on using hashes here.

File details

Details for the file pyreqwest_impersonate-0.1.2-cp311-none-win_amd64.whl.

File metadata

File hashes

Hashes for pyreqwest_impersonate-0.1.2-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 73857787b3f5edb3e34ab10872861f39402badb548ffd70629955d575d60eea3
MD5 360963bc239a88e214be52234f78ad7d
BLAKE2b-256 b1576775990be24d9213cd68d536cfb064eadbb72bb07fb707849a38b5eeef30

See more details on using hashes here.

File details

Details for the file pyreqwest_impersonate-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyreqwest_impersonate-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 62589e363ad81ccf75a9d6921d73ef6fbcb06651a3ce96f3ebae700ed3bc265e
MD5 33303208889e551a429b32d6b356d5c5
BLAKE2b-256 42b03390fbdd8fc0c21daa83a04e7fb9900f87544227cb6f8313e3d415575e70

See more details on using hashes here.

File details

Details for the file pyreqwest_impersonate-0.1.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyreqwest_impersonate-0.1.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b5a2d68eddc64983e425eaa5f9160df74f25b6ad6cc1ccd5679bc3e9f833a8c7
MD5 2deeda611ce37d753c70762eb2dcf4c6
BLAKE2b-256 cec2a656dc7d032ca521072099bf456f58cfa97ceb7e4675c1c28614a45ec0ec

See more details on using hashes here.

File details

Details for the file pyreqwest_impersonate-0.1.2-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyreqwest_impersonate-0.1.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 10bb163255fa30ae75e4951d3cda145e269e218b1725ceb1f3a3afc8309f9eeb
MD5 e28e7e4c987f6e19850c773690612bc8
BLAKE2b-256 c560d901863fc73644642aeaa488f4e738c2ebb83dc118aa59eb8075393f8c3b

See more details on using hashes here.

File details

Details for the file pyreqwest_impersonate-0.1.2-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for pyreqwest_impersonate-0.1.2-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 261a382e412d04bd1f150d397ae394121aeb89661fe55021853c01319604c704
MD5 a4a60c0ca1621adca3b54d38ccd0fee6
BLAKE2b-256 3b85ec17bb04f32733e03699a03b6ce550e7c255772c7d0d11f3a0f98ba21783

See more details on using hashes here.

File details

Details for the file pyreqwest_impersonate-0.1.2-cp310-none-win_amd64.whl.

File metadata

File hashes

Hashes for pyreqwest_impersonate-0.1.2-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 b86d57a47afe04a803a2f3f30978c7e1eb2cdc3562784aab2075efeefcaafca9
MD5 74109ffb25f18b0d588220a23c96a3bb
BLAKE2b-256 bd67dd958104b96567dbbbfbb8ffb77f0b7978595109f6789a561cb35c6c2a37

See more details on using hashes here.

File details

Details for the file pyreqwest_impersonate-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyreqwest_impersonate-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0f124e6b4043c9d6b64aef8b5d941fc66e6a65f6bc33a0dc0c5e6e40ac99b0f3
MD5 ebb6b1f18f377fb72be72da8c0bf469f
BLAKE2b-256 1966f66a0729d7e7b14704e74ec411188659a985ba06cec258a1fe32db2a4bab

See more details on using hashes here.

File details

Details for the file pyreqwest_impersonate-0.1.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyreqwest_impersonate-0.1.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 407f9780d1ff5c399e0340a71952e6cd9f129c82ac6b31b08aec83f865176b9c
MD5 d69fc498bec711f1bf0e4d02580a31b1
BLAKE2b-256 bf151f5f495688baa661c19704afb80a60bbfdc34cdd9f4927173f6373edf9a1

See more details on using hashes here.

File details

Details for the file pyreqwest_impersonate-0.1.2-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyreqwest_impersonate-0.1.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 306c3568710ccccfa2e634ff937c378272dcccb5c0b243630676c022834f7175
MD5 ab76a6683c05dae731b4efdd24f59ca2
BLAKE2b-256 f09a3794c7169238287983c9828d4f309a91054847643823b05bd56a75cba44f

See more details on using hashes here.

File details

Details for the file pyreqwest_impersonate-0.1.2-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for pyreqwest_impersonate-0.1.2-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3dae19bef477f678e664c3ee839ef7b9df4d0d7865f1eb26321ffbb144c450a9
MD5 fd0911ef9d6ac3f87c31d204cff672ba
BLAKE2b-256 e7767aa92762b06b99091f7cc3392e0d14bd52742c377b19c51d2660019d97f9

See more details on using hashes here.

File details

Details for the file pyreqwest_impersonate-0.1.2-cp39-none-win_amd64.whl.

File metadata

File hashes

Hashes for pyreqwest_impersonate-0.1.2-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 0e3f3bfff5bf35d7dca82775a26e719429e2fc96d39f9dc24d726fef7d31bb8f
MD5 ab2f2f9d901747ee72f6d248ff7203a4
BLAKE2b-256 3beeeb2c267cf49ac7ed7cc44afb2e8082f42037a9e2835f691c0a88f90b357a

See more details on using hashes here.

File details

Details for the file pyreqwest_impersonate-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyreqwest_impersonate-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0b1c3ac320f1073d839ca31322d805dbdfce39694968f3825e5d934e8f068a4d
MD5 81ee84397a22e56961622613af27ce31
BLAKE2b-256 20720f02782d5f1118f31de57ac4651378e5981dcbc744440b9881c03d60aefc

See more details on using hashes here.

File details

Details for the file pyreqwest_impersonate-0.1.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyreqwest_impersonate-0.1.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ca7ba0f8bb39ac18bc1ed7f75e848a41753724ff23fa8f37296a88c7462d9577
MD5 e65bb3a7e84b640849698c6cbeeda568
BLAKE2b-256 694f6c8505dd2a2a029f5032b60505d10ad3750dd5d7bd4f972492d0cf7edb3a

See more details on using hashes here.

File details

Details for the file pyreqwest_impersonate-0.1.2-cp38-none-win_amd64.whl.

File metadata

File hashes

Hashes for pyreqwest_impersonate-0.1.2-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 89714b425afa901bbfdf66315b2ebe50fe52e8537843c611f22e3765821fb70d
MD5 6a7f095732062226c45430d7f975d694
BLAKE2b-256 3918a1c443773643f50c5f568b0e624ea6832d520dd26ff4e6051803ba67ad98

See more details on using hashes here.

File details

Details for the file pyreqwest_impersonate-0.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyreqwest_impersonate-0.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ee4f45aa5d30e909c5c5fe9947726ba7e95370002ca2ac30e1b6dafe90472477
MD5 d20df037a454f74536a2b27b2dfe30c0
BLAKE2b-256 ec16078c97545db2be09569e3ba65f2b78fdd7ffe5df09bc904f33e1d4a5f8e3

See more details on using hashes here.

File details

Details for the file pyreqwest_impersonate-0.1.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyreqwest_impersonate-0.1.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 12382b9c2440ea8eba144207c4b691bbf0e8f32993b2175c6a41e919cca9ad87
MD5 22f50c48173b14e515313cdc45262286
BLAKE2b-256 d9364faa4380847f7c18730198e39088b7f59902a58183dc0ea631eca12c6f79

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