Automated system for generating and managing Cloudflare Turnstile tokens using browser automation. Provides REST API for token retrieval with automatic pool management.
- 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
pip install flask botasaurus loguruEdit config.json:
{
"max_tokens_creation": 15,
"proxy": "http://username:password@proxy-ip:port",
"url": "https://wise.com/login" // tested
}python turnstile.pyServer runs on http://0.0.0.0:1420
GET /get-free-token
Returns available token:
{
"token": "0.abc123...",
"token_expire": 1702345678,
"tokens_left": 14
}- Tokens valid for 295 seconds
- Auto-refresh every 60 seconds
- Max pool size: 50 tokens
- For educational purposes only :)