Registry / http-networking / pyreqwest-impersonate

pyreqwest-impersonate

JSON →
library0.5.5pypypiunverified

HTTP client that can impersonate web browsers, mimicking their headers and TLS/JA3/JA4/HTTP2 fingerprints. Version 0.5.3, actively developed.

pip install pyreqwest-impersonate
INSTALL
IMPORT
SIG · PYREQWEST-IMPERSON
P
pyreqwest-impersonate
http-networkingpythonv0.5.5
Install
—
Import
—
Disk
—
Pass rate
0/ 10
Env Coverage0 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v? · pip install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
build_error
glibc
py 3.10–3.95 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

impersonate
✓ from pyreqwest_impersonate import impersonate
✗ from pyreqwest_impersonate import ImpersonateSession
Class name changed in 0.4.0; use the function directly
ImpersonateSession
✓ from pyreqwest_impersonate import ImpersonateSession
✗ from pyreqwest_impersonate import Session
Old import path removed in 0.5.0

Basic request with Chrome impersonation.

import os from pyreqwest_impersonate import impersonate url = 'https://httpbin.org/headers' response = impersonate(url, impersonate='chrome', headers={'User-Agent': os.environ.get('USER_AGENT', 'Mozilla/5.0')}) print(response.text)
Debug
Known issues
breakingIn version 0.4.0, the main API changed from class-based `ImpersonateSession` to a function-based `impersonate`. Old code using `ImpersonateSession` will break.
fix
Replace `session = ImpersonateSession(); session.get(url)` with `impersonate(url, impersonate='chrome')`.
affects: <0.4.0
gotchaImpersonation is not exact; some websites may still detect the library due to missing or differing HTTP/2 settings.
fix
Test with target site and consider adjusting headers or using a different impersonation profile.
affects: all
deprecatedThe `headers` parameter in `impersonate()` is being deprecated in favor of a separate `headers` dictionary passed to the underlying `requests` call.
fix
Pass headers via `requests.Session` or use `impersonate(url, headers=...)` but note deprecation.
affects: >=0.5.0
Upgrade
Version history
0.5.5latest on PyPI · released May 4, 2026
Audit
Dependencies
requestsrequiredUnderlying HTTP library
Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
1
Resources
pyreqwest-impersonate — pip install pyreqwest-impersonate · libregistry