Automatically install chromedriver that supports the currently installed version of chrome.
Project description
py-chromedriver-autoinstaller
This repository is a fork of python-chromedriver-autoinstaller, renamed to py-chromedriver-autoinstaller. It improves upon the original by fixing issues with detecting Chrome versions on Windows and introducing a new function to retrieve the download URL for Chromedriver.
Key Updates
- Fixed: Detection of Chrome versions on Windows.
- New Feature: Added the
get_driver_urlfunction.
get_driver_url Function
This function retrieves the download URL for Chromedriver without performing the actual download. It serves as an alternative to the existing download_chromedriver function.
def get_download_url(path: Optional[AnyStr] = None, no_ssl: bool = False):
Installation
pip install py-chromedriver-autoinstaller
Usage
Import py-chromedriver-autoinstaller to automatically handle Chromedriver installation or fetch the driver URL.
Example: Auto-Installation
from selenium import webdriver
import py_chromedriver_installer
py_chromedriver_installer.install() # Automatically downloads the correct version of Chromedriver,
# then adds it to PATH.
driver = webdriver.Chrome()
driver.get("http://www.python.org")
assert "Python" in driver.title
Example: Get Chromedriver Download URL
from py_chromedriver_installer import get_driver_url
url = get_driver_url() # Retrieves the Chromedriver download URL for the current Chrome version.
print("Chromedriver download URL:", url)
Authors & Contributors
- Farhan Ali <i.farhanali.dev@gmail.com>
Added new features and updates to improve functionality. - CHIDA <iam.yeongbin.jo@gmail.com>
- shawnCaza <theshawn@gmail.com>
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_chromedriver_autoinstaller-1.0.1.tar.gz.
File metadata
- Download URL: py_chromedriver_autoinstaller-1.0.1.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5a236d68e7b0794caa8eb8f9a69e5516e79c11dee2207c130cf74d5b5894989
|
|
| MD5 |
56f1100fc88f4b02d6c7733658bb8466
|
|
| BLAKE2b-256 |
a748c442c059d5bd939b431f4d470ee278ea96262cc71f4326497d06486c5295
|
File details
Details for the file py_chromedriver_autoinstaller-1.0.1-py3-none-any.whl.
File metadata
- Download URL: py_chromedriver_autoinstaller-1.0.1-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d685882d89fa4577277387c3f00a93f99420bbc7e7bbe29876e7dda02252a51
|
|
| MD5 |
45291b52c4baa735a17cbeb72191b6dc
|
|
| BLAKE2b-256 |
465458b979ca146213322b9b6ae07ea2534f24b76f91aef9966040e71603c4d1
|