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.3.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.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: driverium-1.2.3.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.7

File hashes

Hashes for driverium-1.2.3.tar.gz
Algorithm Hash digest
SHA256 99426238c8b8398812013d02852f6f956a28740e56e7eac8941aa741d587b238
MD5 17a67aec87db152669cc463704676d87
BLAKE2b-256 61f89c824b5a3ca0365a1cb901612d9960bb8ba783fc8314166d90df08c0b5ca

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for driverium-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 47589af34a739e876dedbf341f8a55acb69e31ccaec4d84b37fbf27b7ec7ffa4
MD5 a10463d32a390e32701f6388fc0ac4be
BLAKE2b-256 10a1fe566513c86b5a40ea96dba775c8b393257a2462a3da58909fddfcfd38ec

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