Skip to content

cdriv

Control Chromium via ChromeDriver on Termux (Android aarch64).

A direct alternative to Playwright and Selenium — which do not work on Android aarch64. This library communicates with ChromeDriver through the HTTP WebDriver protocol to control Chromium in headless mode, built specifically for Termux.

  • { .lg .middle } Lightweight & Fast


    Single dependency: requests. No heavy frameworks, no containers, no unnecessary complexity.

  • { .lg .middle } Built for Termux


    Runs natively on Android aarch64. Install with pkg install and you're ready.

  • { .lg .middle } API-ready Cookies


    Extract cookies as a dictionary — use directly with requests.Session().

  • { .lg .middle } Intuitive API


    Clean, descriptive methods. Minimal learning curve.

Quick Install

pip install cdriv

See the Installation Guide for detailed instructions.

Quick Start

from cdriv import CDriv

with CDriv() as driver:
    driver.new_session()
    driver.navigate("https://example.com")

    html = driver.get_page_source()
    cookies = driver.get_cookies_dict()
    title = driver.get_title()

    print(title)

Documentation

Section Description
Installation Library and dependency installation
Quickstart Start here
Practical Examples Real-world use cases
API Reference Complete API documentation
Troubleshooting Common issues and solutions

License

MIT