HTTP requests with impersonating web browsers. Impersonate browsers headers, `TLS/JA3` and `HTTP/2` fingerprints.
Project description
pyreqwest_impersonate
HTTP requests with impersonating web browsers.
Impersonate browsers headers, TLS/JA3
and HTTP/2
fingerprints.
Binding to the Rust reqwest_impersonate
library.
Installation
pip install -U pyreqwest_impersonate
Usage
I. Client
A blocking client for making HTTP requests with specific configurations.
Attributes:
timeout
(float, optional): The timeout for the HTTP requests in seconds. Default is 30.proxy
(str, optional): The proxy URL to use for the HTTP requests. Default is None.impersonate
(str, optional): The identifier for the entity to impersonate. Default is None.
from pyreqwest_impersonate import Client
client = Client(
timeout=10,
proxy="socks5://127.0.0.1:9150",
impersonate="chrome_123",
)
example:
from pyreqwest_impersonate import Client
client = Client(impersonate="chrome_123")
response = client.request("GET", "https://httpbin.org/anything")
print(response.text)
print(response.status_code)
print(response.url)
print(response.headers)
print(response.cookies)
resp = Client(impersonate="chrome_123").request("GET", "https://tls.browserleaks.com/json")
print(resp.text)
resp = Client(impersonate="chrome_123").request("GET", "https://check.ja3.zone/")
print(resp.text)
II. AsyncClient
TODO
Impersonate
Variants of the impersonate
parameter:
"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_12"
"safari_15_3"
"safari_15_5"
"safari_15_6_1"
"safari_16"
"safari_16_5"
"safari_17_2_1"
"okhttp_3_9"
"okhttp_3_11"
"okhttp_3_13"
"okhttp_3_14"
"okhttp_4_9"
"okhttp_4_10"
"okhttp_5"
"edge_99"
"edge_101"
"edge_120"
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 Distributions
Close
Hashes for pyreqwest_impersonate-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc239daf523f0343f1989f6d55f99d6a5b9efe6e42b2715f53829a4bcdb1d6fa |
|
MD5 | 2e3a2ff3c79a66933e09ba6bb0ceefb0 |
|
BLAKE2b-256 | 9dd349c5ae3a2111a6b20d275cf1f6795b5211e452ef3c3910e593725676d52e |
Close
Hashes for pyreqwest_impersonate-0.1.0-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b93d68a1dc4f44417be23fd2a2fd065917c38f1bd5cb3ffc4108375121a3952a |
|
MD5 | ada0348ba742f1769c0f72d3e6902eff |
|
BLAKE2b-256 | 6cdec838f21667bb4a04bfcfb48e85121ce17d978fa2783df0ed9a9dad91a9b0 |
Close
Hashes for pyreqwest_impersonate-0.1.0-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ed685c4d500d077865910e8093eca122ed7536d7dc520a3075a2af04b495803 |
|
MD5 | 8c388282a71a9c8ce15b93c5ce80dde2 |
|
BLAKE2b-256 | 79ca27e1e39b0d8e390fc277eb4ecc5304922c6f4c8f547c557bc5503db8c569 |
Close
Hashes for pyreqwest_impersonate-0.1.0-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a71ae7ac1979ed45d0db7e9bd874a39ad3a0184512c1d4554b8fe979923a9bcd |
|
MD5 | 447f0f52b4634c349e52c00f40fd300f |
|
BLAKE2b-256 | 115d8b1166098deaef83a5290ad4349a2cee5acb7ca326e65cad5f968f0fe96f |
Close
Hashes for pyreqwest_impersonate-0.1.0-cp312-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1e3fa68d09a17a1a5bb437cc562d26c2e3db3f8d43fe7351e488dcee92ee956 |
|
MD5 | 580c29a44f29ee745823d9fd84b3108a |
|
BLAKE2b-256 | 055a12ad4a84bc1873c7ec36b72efde3cdd256120990299ba73e3874d58272ea |
Close
Hashes for pyreqwest_impersonate-0.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4211270d907233ab70aea6f13213e51225b3b0969bd7449eaf95d2c17caba0ea |
|
MD5 | a767d512a3812ca99d7706ea3f6fced0 |
|
BLAKE2b-256 | 2e780818f2251d0ecf467370a3fc43230b8e3562f940ca421ce025e52ddd6432 |
Close
Hashes for pyreqwest_impersonate-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb57be1fbead9983370aa2cca1f5827b134b60c23a83df10731f68bc7a1afc7c |
|
MD5 | b859a95fc13c09278e3c0afe261d11ef |
|
BLAKE2b-256 | e8d9faa9227de3352a554ace2f476d3d614fcd105e59e57881f5c96ad1533676 |
Close
Hashes for pyreqwest_impersonate-0.1.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3db32c1edf59a21ac588441e8ef7e9fbff4a21b4e1d06f3f7cc9e59faeb7a00a |
|
MD5 | b42dc9da2c3b3dad878bfdaad4c6311e |
|
BLAKE2b-256 | 38f6a84dcef816a03298b4182f24723361c95d5fb6102501d9e63e267274f8a3 |
Close
Hashes for pyreqwest_impersonate-0.1.0-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50f11f8e2d7d2917ab9f5b3fc8b66b1831b7ab25a9c1199363b919591579b7ab |
|
MD5 | f5a0658ef799152a4fad96659f654cf1 |
|
BLAKE2b-256 | 9c866df518f51f74cc9d23ab2d06487f253635bba1e3ddba2b63587338e17640 |
Close
Hashes for pyreqwest_impersonate-0.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 900e058daa251a9a9685f24ccf8176fe2e9bcbaeebcce24aa26bc2459517c6f2 |
|
MD5 | 0a2318b695b4418537f7a64aecc415ea |
|
BLAKE2b-256 | d8c207fa4ecc925d662d05d828def993c73c28309e26b4cbc7841f640b784f3e |
Close
Hashes for pyreqwest_impersonate-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc90e051379f8e9a3a1c7c8aa9f75ce12467fee239580192d546859e2c261811 |
|
MD5 | b9e95d7d43aef369d35777485e34a006 |
|
BLAKE2b-256 | 0894c6a5901b0b4a80a7188bcb8ff67282112b07e35fb70437d3e587ad506fb5 |
Close
Hashes for pyreqwest_impersonate-0.1.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3863fb6ccb6cec1484cac31c5a3494469fb2cd25cffb74e9d88cadbbaa0e8c49 |
|
MD5 | 1dce1fcf7ef0ab8a777a892f1618257e |
|
BLAKE2b-256 | 6760cd1f3a2f0d77d08d58774406264407e5cbc0c1fc7f246bd6853168fb01f5 |
Close
Hashes for pyreqwest_impersonate-0.1.0-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc8ba06579635ca2d78251a41d7d81de189904c443f0b7886823c09ee8a65d7a |
|
MD5 | b21e2f8b1757242c4402a3b9a61140cb |
|
BLAKE2b-256 | 6cc57a1ef6bb0dbb1c40fdae868e19c83436474f52c0e7552dc93dc625593bbc |
Close
Hashes for pyreqwest_impersonate-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef366cc4a20ad306b3f1e8b6f942f2d15ae7f4fb187c0c1d3f13b109ff606e79 |
|
MD5 | 4fdcc16ad534d854f41a453a5f366bdc |
|
BLAKE2b-256 | b1b48e192cf2205ccc78b11847e30ea305eaec98bbb664ef38d47aba2441c44a |
Close
Hashes for pyreqwest_impersonate-0.1.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3de22dcc2c874c29e88d9b636175d4d6a7a4ee99af1c40ce2d17780b8b547ee |
|
MD5 | d015d58683948f2b935a83837c9fee87 |
|
BLAKE2b-256 | bb535737d83002db68a1d8d1120545e6b1628cb5869062692bf35e0ac8498f8f |
Close
Hashes for pyreqwest_impersonate-0.1.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd0ba476b36a77973ab93dc896382479eb3aead3d5a2fb3a55bb6d01c173a9dd |
|
MD5 | 06ef73dfb1f91169856a69ea8481961a |
|
BLAKE2b-256 | 0b7be56d1953c78b374ddc115ffb9e1e7e1b9ba954d7af1309c8343fc6204851 |
Close
Hashes for pyreqwest_impersonate-0.1.0-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1e1b8365c6b1f0b9028085d18604ec89b65a2732f5f24425271ffb80c8cfb82 |
|
MD5 | e99387be526862d594c3cb3776e2daf3 |
|
BLAKE2b-256 | dd6857704bd39dbb1d2fe0925e15fb10b5bc561a777fa3bb40546711954e1c6f |
Close
Hashes for pyreqwest_impersonate-0.1.0-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 020101632989e4bd13617efead2a4a52c3718a782e4f9bb9ecbac5d74041150d |
|
MD5 | db94ee5378a248e78a622cf564c550bb |
|
BLAKE2b-256 | a8f0b8a1b4b273e337cb2f640647ff796475cd969ed8f1c67b4296bf0c0d6169 |
Close
Hashes for pyreqwest_impersonate-0.1.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7a10e5de5c8dbdafbe897e5a89635ed75e562f806150691a566e6254fdb9970 |
|
MD5 | f6e1815f5caa2f98166254212d0b4082 |
|
BLAKE2b-256 | 6d1117d8a38b7ff35ccda0d3165fbaff93267fbd6b01260148451d3e5d937fc6 |
Close
Hashes for pyreqwest_impersonate-0.1.0-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76648a44aa56bdb9e052ceab2a7bff692361024acd367baef4b500e329d19358 |
|
MD5 | bb7995b9c7a9be209c4558ce2bbbe4c0 |
|
BLAKE2b-256 | 49ff606749878645a5e58bbc9410be61a9feb3a12bc179dce60ad16ecedaae66 |
Close
Hashes for pyreqwest_impersonate-0.1.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c02cf9949e88ebbc2826976c70afb4943ea0da76aa558aaa6734cd468ee9643 |
|
MD5 | c117fbfc99b40400dd731ee9087ff1f1 |
|
BLAKE2b-256 | 9619546ac567fb12587b77dce5b7918d887b66bc0661165f3c764fb267e1fb61 |