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.
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
Built Distribution
File details
Details for the file driverium-1.2.2.tar.gz
.
File metadata
- Download URL: driverium-1.2.2.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49a17cb06d27118a756606ac01197cc4f3c2446ef5f74c669dd0e9268d1b63ec |
|
MD5 | ff7ab0e340faa7cd49d318fbcc629ac8 |
|
BLAKE2b-256 | 272b16fc0e0535af7f4fe276d0408ee355ca0cf0d9f6cfab374bf9e8071601b0 |
File details
Details for the file driverium-1.2.2-py3-none-any.whl
.
File metadata
- Download URL: driverium-1.2.2-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77e3f9e0eebb2edd445df5765170777b9eb8db3141c0817a53a7b83f217081a6 |
|
MD5 | ed169c8157819687ab9893a9e8377a9d |
|
BLAKE2b-256 | 2aaf1d3f6bf4faa36c7a81bacc12fcbab34775b7328aa2c9289d8cb8cfd7b658 |