Anti-Scraping Playwright
A production-ready Python toolkit for building resilient web scrapers with Playwright. It combines stealth browser contexts, human-like interaction, proxy rotation, honeypot evasion, and anti-fingerprinting techniques to help automate data collection responsibly.
Features
- User Agent Rotation โ Round-robin and random selection from a curated list of modern user agents.
- Proxy Rotation โ HTTP, HTTPS, and SOCKS5 proxies with authentication and Tor support.
- Human-Like Behavior โ Randomized delays, natural typing with typos, Bezier mouse movement, and realistic scrolling.
- Honeypot Detection โ Identifies invisible and pattern-matched trap elements and skips them automatically.
- Anti-Fingerprinting โ Canvas, audio, and WebGL fingerprint randomization plus viewport and timezone spoofing.
- Stealth Mode โ Removes automation indicators such as
navigator.webdriver and mocks Chrome runtime.
- Session Management โ Cookie clearing, storage cleanup, and automatic session rotation.
- Reliability โ Retry logic with exponential backoff, proxy health scoring, circuit breaker, and adaptive delays.
Installation
pipโฆ