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.

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.

progress_download(url: str) -> io.BytesIO

Downloads the file from the specified URL and displays progress using a progress bar.

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.0.0.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

driverium-1.0.0-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

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