Python server to automatically solve Cloudflare Turnstile CAPTCHA with an average solving time of two seconds (counting with a fast internet connection).
PD: This repository was initially created for personal use. I've adjusted it for sharing, but it might still be slightly disorganized. Feel free to contribute, open issues, and request new features.
pip install git+https://github.com/odell0111/turnstile_solver@main
patchright install chrome
Note: You can also install chromium but chrome is recommended by Patchright
solver
solver --port 8088 --secret jWRN7DH6 --browser-position --max-attempts 3 --captcha-timeout 30 --page-load-timeout 30 --reload-on-overrun
solver --proxy-server http://myproxy.com:3128 --proxy-username user --proxy-password pass
solver --proxy-server MY_PROXY_SERVER --proxy-username MY_PROXY_USERNAME --proxy-password MY_PROXY_PASSWORD
solver --proxies myproxies.txt
curl --location --request GET 'http://127.0.0.1:8088/solve' \
--header 'ngrok-skip-browser-warning: _' \
--header 'secret: jWRN7DH6' \
--header 'Content-Type: application/json' \
--data '{
"site_url": "https://spotifydown.com",
"site_key": "0x4AAAAAAAByvC31sFG0MSlp"
}'
import requests
SERVER_URL = "http://127.0.0.1:8088"
url = f"{SERVER_URL}/solve"
headers = {
'ngrok-skip
8000
-browser-warning': '_',
'secret': 'jWRN7DH6',
'Content-Type': 'application/json'
}
json_data = {
"site_url": "https://spotifydown.com",
"site_key": "0x4AAAAAAAByvC31sFG0MSlp"
}
response = requests.get(
url=url,
headers=headers,
json=json_data,
)
response.raise_for_status()
data = response.json()
# {
# "elapsed": "2.641519",
# "message": null,
# "status": "OK",
# "token": "0.MwOLQ3dg..."
# }
token = data['token']
print("Token:", token)
goto ./docker/README.md
Use this project entirely at your own risk. I hold no responsibility for any negative outcomes, including but not limited to API blocking and IP bans
Need to elevate your project? Try CapSolver, an industry-leading RPA (Robotic Process Automation) service. From Cloudflare's anti-bot systems to hCaptcha, reCAPTCHA, and more, CapSolver delivers unmatched accuracy and speed to tackle even the toughest challenges. Trusted by developers worldwide for seamless automation.
If you find my work useful and want to encourage further development, you can do so by donating
0x88046e6d0f2bf8629cd7fbd754e4e275083fc993
BL3QX5GtfXp8qha8PMLVwyud7gxB1aPE4Vsqotwscxsv
TMpXigKBghRQmgYD53KyuxS38FH516ermu
1E9kw3FuaahfeproboNL7uvyBdjP9wY6CR
0x88046e6d0f2bf8629cd7fbd754e4e275083fc993
UQCyCnWVYOmv97idVFZ4tIewToZacRhYVwfGNU658fN5w3Kl
bytechanger@speed.app