Skip to content

A browser based solver for Turnstile (Cloudflare's captcha)

License

Notifications You must be signed in to change notification settings

Body-Alhoha/turnaround

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

(paid ad)

Turnaround

Uses playwright to automatically solve Turnstile

Installation

pip install -r requirements.txt

Usage

with sync_playwright() as playwright:
    s = solver.Solver(playwright, headless=False) # creates a new solver object
    captcha = s.solve("https://modrinth.com/auth/sign-up", "0x4AAAAAAAHWfmKCm7cUG869", invisible=True) # first argument is the website url & second one is the website sitekey
    # s.solve will return "failed" if it failed to solve the captcha.
    print(captcha)
    s.terminate() # terminates the browser

If you want to use the solver in a loop, keep the same solver object and use it over again to not instantiate a new browser each time, look at example.py

Feel free to contribute

Releases

No releases published

Packages

No packages published