How dx-bear/deflare works
Deflare is a small Python utility for detecting Turnstile challenges and attempting checkbox bypasses through Patchright or Pydoll. Its runtime is concentrated in solver.py: the public API checks for challenges, resolves iframe coordinates (including through shadow roots via CDP), and the retrying bypass flow uses a backend-specific click. The excerpts show coordinate-resolution internals; the README documents the broader API and backend behavior, so those links are cited there.
Main entry points: solver.py Public solver API
Components 7
Solver runtime
- Public solver API
src/deflare/solver.py - Challenge detection
src/deflare/solver.py - Coordinate resolution
src/deflare/solver.py - CDP DOM inspection
src/deflare/solver.py - Retry and bypass
src/deflare/solver.py - Backend checkbox click
src/deflare/solver.py
Other components
- Automation page
Connections 9
- Automation page → Public solver API: provides page
README.md - Public solver API → Challenge detection: checks challenge
README.md - Public solver API → Coordinate resolution: gets coordinates
README.md - Public solver API → Retry and bypass: starts attempts
README.md - Retry and bypass → Challenge detection: checks challenge
README.md - Retry and bypass → Coordinate resolution: gets coordinates
src/deflare/solver.py - Coordinate resolution → CDP DOM inspection: pierces DOM
src/deflare/solver.py - Retry and bypass → Backend checkbox click: clicks checkbox
README.md - Backend checkbox click → Automation page: interacts with page
README.md