You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importcloudscraper# Basic usage - works for most sitesscraper=cloudscraper.create_scraper()
response=scraper.get("https://protected-site.com")
# High security sites (Turnstile, Managed Challenges)scraper=cloudscraper.create_high_security_scraper(
captcha_api_key='YOUR_2CAPTCHA_KEY',
google_api_key='YOUR_GEMINI_KEY',
debug=True
)
📦 Installation
# Basic installation
pip install ai-cloudscraper
# With AI captcha solvers
pip install ai-cloudscraper[ai]
# With browser automation
pip install ai-cloudscraper[browser]
# With Hybrid Engine (recommended)
pip install ai-cloudscraper[hybrid]
# Full installation (all features)
pip install ai-cloudscraper[ai,browser,hybrid]
# AI OCR for text captchasscraper=cloudscraper.create_scraper(
captcha={'provider': 'ai_ocr'}
)
# AI Object Detection for image captchasscraper=cloudscraper.create_scraper(
captcha={'provider': 'ai_obj_det'}
)
The Hybrid Engine combines TLS-Chameleon (curl_cffi) with Py-Parkour (Playwright) for maximum bypass capability.
Enabling Hybrid Engine
# Basic hybrid modescraper=cloudscraper.create_scraper(interpreter='hybrid')
# Hybrid with specific fingerprintscraper=cloudscraper.create_scraper(
interpreter='hybrid',
impersonate='chrome120'
)
# Hybrid with AI captcha solvingscraper=cloudscraper.create_scraper(
interpreter='hybrid',
impersonate='chrome120',
google_api_key='YOUR_GEMINI_API_KEY'
)
Available Fingerprint Profiles
Profile
Browser
chrome120
Chrome 120
chrome119
Chrome 119
chrome118
Chrome 118
firefox120
Firefox 120
firefox122
Firefox 122
safari17_0
Safari 17.0
edge120
Edge 120
High Security Scraper Factory
For sites with Turnstile, Managed Challenges, or Interactive Verification:
# Method 1: With captcha servicescraper=cloudscraper.create_high_security_scraper(
captcha_provider='2captcha',
captcha_api_key='YOUR_API_KEY',
debug=True
)
# Method 2: With residential proxyscraper=cloudscraper.create_high_security_scraper(
captcha_api_key='YOUR_API_KEY',
proxy='http://user:pass@residential-proxy:8080',
debug=True
)
# Method 3: Full power (AI + Captcha + Proxy)scraper=cloudscraper.create_high_security_scraper(
captcha_provider='2captcha',
captcha_api_key='YOUR_2CAPTCHA_KEY',
google_api_key='YOUR_GEMINI_KEY',
proxy='http://user:pass@residential-proxy:8080',
debug=True
)
👑 BOSS MODE: High-Security Targets
🎯 Verified Success Stories (Case Studies)
The following configurations have been rigorously tested and verified to bypass extreme Cloudflare protections:
Target Type
Security
Bypass Method
Result
High Security Review Site
Hard Turnstile
Boss Mode
✅ Success (8.6s)
Corporate Intelligence Portal
High Security
Boss Mode
✅ Success (38s)
Political Archive
Turnstile V3
Boss Mode
✅ Success (16s)
Freelance Marketplace
Managed Challenge
Parallel Boss Mode
✅ Success
Stock Media Registry
Bot Management
Parallel Boss Mode
✅ Success
Tip
Why Boss Mode works? It's not just a solver; it's a full identity transformation. By combining a clean IP with hardware masking (disguise=True) and behavioral simulation (warm_get), the browser appears 100% human to AI-based detection systems.
For the most aggressive anti-bot protections, standard automation will often trigger a 403 even after solving challenges. This is due to Browser Engine Profiling.
The Winning Combo (Boss Mode)
To defeat these targets, you MUST combine three layers:
🌐 Clean IP Reputation: Use a fresh Residential Proxy or a high-quality VPN.
🎭 Identity Masking (Disguise): Use the disguise=True parameter. This swaps the browser's hardware "DNA" (CPU, GPU, WebGL signatures).
👁️ AI Vision Solver: Trust Builder automatically uses computer vision (Pillow) to "see" and click the challenge checkbox.
Boss Mode Parameters
Parameter
Function
Importance
proxy
Uses a specific IP for both browser and requests.
Highly Recommended
disguise=True
Generates a unique, non-automated hardware profile.
Mandatory
depth=5
Visits 5 organic pages first to build "trust warmth".
Highly Recommended
headless=False
Allows you to watch the AI Vision solve the challenge.
Useful for Debugging
debug=True
Provides logs of Ghost Cursor and AI detected coordinates.
Recommended
Code Example: Defeating an Ultra-Hard Target
fromcloudscraper.trust_builderimportwarm_get# Targeting a Boss websiteresponse=warm_get(
"https://high-security-site.com/protected/",
disguise=True, # 🎭 Identity Maskingdepth=5, # 🌡️ Progressive Trust Buildingheadless=True, # 🙈 Run in backgrounddebug=True# 🔍 Monitor AI Vision
)
ifresponse.status_code==200:
print("Boss defeated! Access granted. 🏆")
# clearance cookies are already synchronized
🌐 Proxy Integration
Trust Builder now supports direct proxy injection for both the browser bridge and the session warming layer.
fromcloudscraper.challenge_predictorimportChallengePredictorpredictor=ChallengePredictor()
# Predict challenge type for domainpredicted=predictor.predict_challenge('example.com')
# Get recommended configurationconfig=predictor.get_recommended_config('example.com')
scraper=cloudscraper.create_scraper(**config)
Session Pool (Multi-Fingerprint)
fromcloudscraper.session_poolimportSessionPool# Create session poolpool=SessionPool(
pool_size=5,
rotation_strategy='round_robin'# or 'random', 'least_used'
)
# Use pool for requestsresponse=pool.get('https://protected-site.com')
Rate Limiter
fromcloudscraper.rate_limiterimportSmartRateLimiterlimiter=SmartRateLimiter(
default_delay=1.0,
burst_limit=10
)
# Wait before making requestlimiter.wait_if_needed('example.com')
# Record response for adaptive learninglimiter.record_response('example.com', response.status_code)
TLS Fingerprint Rotator
fromcloudscraper.tls_rotatorimportTLSFingerprintRotatorrotator=TLSFingerprintRotator(rotation_interval=10)
# Get next fingerprintfingerprint=rotator.get_fingerprint() # 'chrome_120', 'firefox_122', etc.