Skip to main content

Python library that provides functionality for managing and downloading ChromeDriver

Project description

Driverium

Driverium is a Python library that provides functionality for managing and downloading ChromeDriver for different Chrome versions.

Installation

To install Driverium, simply use pip:

pip install driverium

Usage

from driverium import Driverium
from selenium import webdriver
# Create an instance of Driverium
driverium = Driverium()

# Get the path to the ChromeDriver
driver_path = driverium.get_driver()

# Use the ChromeDriver path in your Selenium code
driver = webdriver.Chrome(driver_path)

or you can use driverium like this:

from driverium import Driverium
from selenium import webdriver

driver = webdriver.Chrome(Driverium().get_driver())

Methods

get_driver() -> str

Retrieves the path to the ChromeDriver. If the driver is not found, it will download it first.

get_driver_url() -> str

Retrieves the URL of the ChromeDriver based on the specified Chrome version.

get_new_driver() -> str

Retrieves the path to the latest version of the ChromeDriver.

get_old_driver() -> str

Retrieves the path to an older version of the ChromeDriver.

download_driver(url: str) -> str

Downloads the ChromeDriver from the specified URL and returns the path to the downloaded driver.

quiet_download(url: str) -> io.BytesIO

Downloads the file from the specified URL without displaying progress.

Contributing

Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue on the GitHub repository.

License

Driverium is licensed under the MIT License. See the LICENSE file for more information.

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

driverium-1.2.4.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

driverium-1.2.4-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file driverium-1.2.4.tar.gz.

File metadata

  • Download URL: driverium-1.2.4.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.2

File hashes

Hashes for driverium-1.2.4.tar.gz
Algorithm Hash digest
SHA256 90abddf02a08df33aab07993ef23a86a5a179e13067360771ef54edc8769dd46
MD5 5e56de6c19ac85fb43ec64ebd4abd34d
BLAKE2b-256 84d1874fd3bbc4a8274dcc19c63bdac686aa9a72ff9124a46c050b0a0f0ce824

See more details on using hashes here.

File details

Details for the file driverium-1.2.4-py3-none-any.whl.

File metadata

  • Download URL: driverium-1.2.4-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.2

File hashes

Hashes for driverium-1.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3009e7d031705bd8c5a0e9c02003194bc5ab8f8a9c482f3a8028f682a1c1265c
MD5 46ae20d86bfa9764282b13e9ecb33670
BLAKE2b-256 14d37c55e6687f2e29884f5265d52271a41bc08e2c053feccd584638729c3e67

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