Skip to main content

A high-performance, lightweight Chrome DevTools Protocol (CDP) client with built-in stealth.

Project description

Xcelerate Python SDK

A high-performance, lightweight Chrome DevTools Protocol (CDP) client for Python, designed for speed and stealth.

Features

  • Blazing Fast: Direct CDP communication over WebSockets.
  • Stealth by Design: Built-in anti-bot protection and binary patching.
  • Universal: Native bindings for high performance.
  • Async/Await: Full support for Python's asyncio.

Installation

pip install xcelerate

Quick Start

import asyncio
from xcelerate import Browser, BrowserConfig

async def main():
    # Launch browser with intelligent defaults
    # (Optional: headless=True, stealth=True, detached=True, executable_path=None)
    config = BrowserConfig()
    browser = await Browser.launch(config)
    
    # Create a new page
    print("Opening Pixelscan...")
    page = await browser.new_page("https://pixelscan.net/bot-check")
    
    # Wait for result to load
    print("Waiting 10 seconds for bot check...")
    await asyncio.sleep(10)
    
    # Interact with the page
    print(f"Title: {await page.title()}")
    
    # Take a screenshot
    print("Capturing screenshot...")
    screenshot = await page.screenshot_full()
    with open("result.png", "wb") as f:
        f.write(screenshot)
    
    await browser.close()

if __name__ == "__main__":
    asyncio.run(main())

Advanced Configuration

The BrowserConfig object allows you to fine-tune the browser behavior:

  • stealth (default: True): Applies binary patches and JS masking to bypass bot detection.
  • detached (default: True): Spawns the browser as an independent process that stays open even if your script finishes.
  • headless (default: True): Runs the browser without a visible window.
  • executable_path (default: None): Manually specify the location of Chrome or Edge.

License

MIT

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

xcelerate-0.1.3.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

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

xcelerate-0.1.3-py3-none-any.whl (2.0 MB view details)

Uploaded Python 3

File details

Details for the file xcelerate-0.1.3.tar.gz.

File metadata

  • Download URL: xcelerate-0.1.3.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for xcelerate-0.1.3.tar.gz
Algorithm Hash digest
SHA256 42955780936c8f7b80ef196ff9a48286a776a3defa5e3d99d6f7ec2b4807d4ea
MD5 c6181a7c0a0bfb13b1adf611b8734906
BLAKE2b-256 b6c3ac6118a0577b20d702a021521c9a16bbbf2888e76f8d7d92ef0eee4c67eb

See more details on using hashes here.

File details

Details for the file xcelerate-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: xcelerate-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for xcelerate-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 87e77c762775c3c28d610564dd4e1f6e9a359d26d5d35732fc86d5cd2e9f0767
MD5 6e4eadf17f4f6a750ebeb9393f52d7c8
BLAKE2b-256 cf9b12d5a233c7f9fd8eebed9814497ea41afe60572ddfbea9b0c24d18caa341

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