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>
Metadata
Release files for py-chromedriver-autoinstaller 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| py_chromedriver_autoinstaller-1.0.1.tar.gz | 8.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py_chromedriver_autoinstaller-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.5 kB
Release files / py_chromedriver_autoinstaller-1.0.1.tar.gz
| Download URL | py_chromedriver_autoinstaller-1.0.1.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5a236d68e7b0794caa8eb8f9a69e5516e79c11dee2207c130cf74d5b5894989
|
|
BLAKE2b-256 checksum How to use checksums |
a748c442c059d5bd939b431f4d470ee278ea96262cc71f4326497d06486c5295
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.1
|
Release files / py_chromedriver_autoinstaller-1.0.1-py3-none-any.whl
| Download URL | py_chromedriver_autoinstaller-1.0.1-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d685882d89fa4577277387c3f00a93f99420bbc7e7bbe29876e7dda02252a51
|
|
BLAKE2b-256 checksum How to use checksums |
465458b979ca146213322b9b6ae07ea2534f24b76f91aef9966040e71603c4d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.1
|