HTTP client that can impersonate web browsers
Maintained. Last release 3 months ago, commits in 2 of the last 26 weeks. Weaker on commit activity and contributor spread.
pip install primp🪞 PRIMP 🐍
HTTP client that can impersonate web browsers
📦 Installation
pip install -U primp
🔧 Building from Source
git clone https://github.com/deedy5/primp.git && cd primp/crates/primp-python
python -m venv .venv && source .venv/bin/activate
pip install maturin && maturin develop -r
🚀 Quick Start
Sync API
import primp
client = primp.Client(impersonate="chrome_146")
resp = client.get("https://tls.peet.ws/api/all")
print(resp.text)
Async API
import asyncio
import primp
async def main():
async with primp.AsyncClient(impersonate="chrome_146") as client:
resp = await client.get("https://tls.peet.ws/api/all")
print(resp.text)
asyncio.run(main())
More examples
See the examples directory.
📊 Benchmark

🎭 Browser profiles
| Browser | Profiles |
|---|---|
| Chrome | chrome_144, chrome_145, chrome_146, chrome_147, chrome_148, chrome_149, chrome_150, chrome_151, chrome_152, , |