Skip to main content

A Python library to automatically bypass Cloudflare protection

Project description

CF Auto Bypass

A Python library to automatically bypass Cloudflare's JavaScript challenges and protection mechanisms.

Features

  • Automatic Cloudflare JavaScript challenge solving
  • Support for proxy configuration
  • Browser fingerprint customization
  • Cookie management
  • Detailed error handling and logging

Installation

pip install cf-auto-bypass

Quick Start

from cf_auto_bypass import CloudflareBypass

# Create a bypass instance
bypass = CloudflareBypass(headless=False)

# Bypass Cloudflare protection
result = bypass.bypass("https://example.com")

if result.success:
    print(f"Title: {result.title}")
    print(f"Cookies: {result.cookies}")
    print(f"HTML content length: {len(result.html)}")
else:
    print(f"Error: {result.error}")

Advanced Usage

# Using with proxy
bypass = CloudflareBypass(
    headless=True,
    timeout=60000,
    wait_time=15
)

result = bypass.bypass(
    url="https://example.com",
    proxy="http://user:pass@proxy.example.com:8080"
)

License

MIT License - see LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cf_auto_bypass-0.1.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cf_auto_bypass-0.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file cf_auto_bypass-0.1.0.tar.gz.

File metadata

  • Download URL: cf_auto_bypass-0.1.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for cf_auto_bypass-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7e11cdfab4d5f83be4a6e122b81e48a8cda86ee898bca36b83ac44f56c4cbd22
MD5 fd19a08a44180b6d3fd482547db53220
BLAKE2b-256 8da9e3197bb2f2b03839f69b81b94361f48114b2f4b8926b755c202088a19f4d

See more details on using hashes here.

File details

Details for the file cf_auto_bypass-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cf_auto_bypass-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for cf_auto_bypass-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fb3d45960c99c7113183efed1686f60eb73b8e98232614a140a84c646c349d9a
MD5 28d61c0759294aef50d58c58a1ebcb7a
BLAKE2b-256 c3a616c81293522a3c75223238332748dc80fbe9b7c9f25922829475ad125187

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page