Skip to content

Automated system for generating and managing Cloudflare Turnstile tokens using browser automation. Provides REST API for token retrieval with automatic pool management.

License

Notifications You must be signed in to change notification settings

zile42O/get-cf-turnstile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cf-turnstile

Automated system for generating and managing Cloudflare Turnstile tokens using browser automation. Provides REST API for token retrieval with automatic pool management.

Features

  • Parallel token generation with configurable pool size
  • Auto-refill system with expiration handling (~5 minutes)
  • REST API endpoint for token requests
  • Proxy support and persistent JSON storage

Installation

pip install flask botasaurus loguru

Configuration

Edit config.json:

{
  "max_tokens_creation": 15,
  "proxy": "http://username:password@proxy-ip:port",
  "url": "https://wise.com/login" // tested
}

Usage

python turnstile.py

Server runs on http://0.0.0.0:1420

API

GET /get-free-token

Returns available token:

{
  "token": "0.abc123...",
  "token_expire": 1702345678,
  "tokens_left": 14
}

Notes

  • Tokens valid for 295 seconds
  • Auto-refresh every 60 seconds
  • Max pool size: 50 tokens
  • For educational purposes only :)

About

Automated system for generating and managing Cloudflare Turnstile tokens using browser automation. Provides REST API for token retrieval with automatic pool management.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages