Skip to content

lvjin521/captcha_bypass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Turnstile Token Fetcher

A Cloudflare Turnstile CAPTCHA solving solution based on YesCaptcha API.

captcha solver cloudflare turnstile captcha-solver captcha-solver-api cloudflare-turnstile turnstile-solver cloudflare-turnstile-solver turnstile-captcha-solver turnstile-bypass cloudflare-turnstile-bypass captcha-solver-turnstile cloudflare-turnstile-captcha-solver

🎁 Recommended CAPTCHA Service

YesCaptcha - Professional CAPTCHA Solving Service

👉 Referral Link: https://yescaptcha.com/i/Tcb4tM

💡 Special Bonus: Register with this referral link to get V6 Level instantly, enjoy higher service tier and faster processing speed!

🚀 Quick Start

Install Dependencies

pip install requests

Usage Example

from turnstile_utils import TurnstileSolver

# Initialize solver (requires YesCaptcha API Key)
solver = TurnstileSolver(client_key="your_api_key")

# Get Turnstile token
token = solver.get_turnstile_token(
    website_url="https://example.com",
    website_key="0x4AAAAAAAxxxxxxxxx"
)

print(f"Token: {token}")

📖 Main Method

get_turnstile_token(website_url, website_key, max_attempts=40)

Automatically creates a task and polls for the Turnstile token.

Parameters:

  • website_url: Website URL
  • website_key: Turnstile site key
  • max_attempts: Maximum polling attempts (default 40, approximately 120 seconds)

Returns: Turnstile token string

🔍 How to Get Turnstile Site Key

  1. Open the target website, press F12 to open Developer Tools
  2. Look for requests containing turnstile in the Network tab
  3. Or search for sitekey or data-sitekey in the page source code
  4. Site Key format is usually: 0x4AAAAAAAxxxxxxxxx

⚠️ Notes

  • Keep your API Key secure, do not commit it to public repositories
  • Using YesCaptcha API incurs costs, please top up according to your usage
  • Default max polling is 40 attempts (~120 seconds), complex CAPTCHAs may require more time