System Requirements
Python Version: Python 3.8 or higher is required for full compatibility with type hints and async features.
Python 3.8.x or higher
Installation Methods
Method 1: Using requirements.txt (Recommended)
The SDK requires three core dependencies defined inrequirements.txt:
Method 2: Manual Installation
Install each dependency individually:Core Dependencies Explained
curl_cffi
Purpose: Low-level HTTP client with TLS fingerprinting capabilitiescurl_cffi is the backbone of the SDK, providing:
- Custom JA3 fingerprint configuration
- Android WebView TLS signature emulation
- Fine-grained control over HTTP/2 headers
This library may take longer to initialize on first use due to native library loading.
tls_client
Purpose: Secondary TLS client for API communication Used specifically for:- Communicating with the X-Net header generation API
- Sending device ID, SST tokens, and URL signatures
- Maintaining separate session for anti-bot token requests
prettytable
Purpose: Console output formatting for scraped data Provides:- Formatted table display of match data
- Easy visualization of odds and markets during development
- Debug output for parsed data structures
Configuration Setup
Create Configuration File
Create aconfig.json file in your project root:
Configuration Parameters
API Key
Your authentication key for the header generation service.How to obtain:
- Contact the developer on Discord
- Request API access for your use case
- Receive your unique API key
Proxy Configuration (Optional)
A residential or datacenter proxy to enhance reliability and avoid IP blocks.Supported formats:Leave empty if not using a proxy:
Recommended: Residential proxies from providers like BrightData, Smartproxy, or Oxylabs work best for avoiding Cloudflare detection.
Environment Variables (Alternative)
For production deployments, use environment variables instead ofconfig.json:
Verification Steps
Step 1: Verify Installation
Test that all dependencies are correctly installed:Step 2: Test Configuration Loading
Verify yourconfig.json is correctly formatted:
Step 3: Test API Connection
Verify your API key works:Step 4: Full Integration Test
Run the complete workflow to verify everything works:If you see match data printed in tables, your installation is successful!
Troubleshooting
Common Installation Issues
Error:ModuleNotFoundError: No module named 'curl_cffi'
Solution:
AssertionError: An error occured while generating token
Solution: Invalid API key or API service is down
- Verify your
api_keyinconfig.json - Check API URL is correct
- Contact support if issue persists
403 Forbidden during homepage navigation
Solution: IP address blocked by Cloudflare
- Configure a residential proxy in
config.json - Try from a different network
- Headers may need updating (contact support)
Proxy Testing
Test if your proxy works:Project Structure
After installation, your project should look like:Next Steps
Quickstart Guide
Run your first scraper in 5 minutes
Core Concepts
Learn about anti-bot protection and TLS fingerprinting
API Reference
Complete API documentation for Bet365AndroidSession
Examples
Explore practical examples and code snippets
Getting Help
If you encounter issues during installation:- Join the Discord community for support
- Check that your Python version is 3.8+
- Ensure you have a valid API key
- Try using a proxy if experiencing 403 errors