Skip to main content

py-chromedriver-autoinstaller

GitHub GitHub release (latest by date) PyPI

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_url function.

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

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)

Source distribution for py-chromedriver-autoinstaller 1.0.1
File Size Uploaded
py_chromedriver_autoinstaller-1.0.1.tar.gz 8.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for py-chromedriver-autoinstaller 1.0.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page