Skip to main content

Get ChromeDriver

PyPI - Python Version PyPI PyPI - License

tests

A tool to download and install ChromeDriver. Automatically download a ChromeDriver version for the current installed Chrome version. Or you can choose to download the beta version (if one is currently available), the stable version or another specific version. You can use this tool as a package import or as a command-line application.

Install

To install:

pip install get-chrome-driver

To upgrade:

pip install get-chrome-driver --upgrade

Usage

Install and use ChromeDriver with Selenium

import time
from get_chrome_driver import GetChromeDriver
from selenium import webdriver

# Install the driver:
# Downloads ChromeDriver for the installed Chrome version on the machine
# Adds the downloaded ChromeDriver to path
get_driver = GetChromeDriver()
get_driver.install()

# Use the installed ChromeDriver with Selenium
driver = webdriver.Chrome()
driver.get("https://google.com")
time.sleep(3)
driver.quit()

For downloading only

from get_chrome_driver import GetChromeDriver

get_driver = GetChromeDriver()

# Print the stable version
print(get_driver.stable_version())

# Print the stable version download link
print(get_driver.stable_version_url())

# Print the download link of a specific version
print(get_driver.version_url('84.0.4147.30'))

# Auto download ChromeDriver for the installed Chrome version
# Optional: use output_path= to specify where to download the driver
# Optional: use extract=True to extract the file
get_driver.auto_download(extract=True)

# Download the stable driver version
# Optional: use output_path= to specify where to download the driver
# Optional: use extract=True to extract the zip file
get_driver.download_stable_version(extract=True)

# Download a specific driver version
# Optional: use output_path= to specify where to download the driver
# Optional: use extract=True to extract the file
get_driver.download_version('84.0.4147.30', extract=True)

Command-line

Print the stable version url of all platforms:

get-chrome-driver --latest-urls

Print the stable version:

get-chrome-driver --stable-version

Print the stable version url:

get-chrome-driver --stable-url

Auto download ChromeDriver for the current installed Chrome version and extract the file:

get-chrome-driver --auto-download --extract

Download the stable version and extract the file:

get-chrome-driver --download-stable --extract

Download a specific version and extract the file:

get-chrome-driver --download-version 84.0.4147.30 --extract

The downloaded driver can be found at:

<current directory>/<chromedriver>/<version>/<bin>/<chromedriver>

Note: Beta version related options and functions will only work if one is currently available.

Options

--help                      Show help.

--beta-version              Print the beta version.

--stable-version            Print the stable version.

--latest-urls               Print the beta and stable version urls for all platforms.

--version-url               Print the url of a version.

--beta-url                  Print the beta version url.

--stable-url                Print the stable version url.

--auto-download             Download a ChromeDriver version for the installed Chrome Version.

--chromium                  Auto download will look for the installed Chromium version instead of Chrome.

--download-beta             Download the beta version.

--download-stable           Download the stable version.

--download-version          Download a specific version.

--extract                   Extract the compressed driver file.

--driver-filename           Print the driver filename.

--version                   App version.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

get_chrome_driver-1.5.4.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

get_chrome_driver-1.5.4-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file get_chrome_driver-1.5.4.tar.gz.

File metadata

  • Download URL: get_chrome_driver-1.5.4.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.7

File hashes

Hashes for get_chrome_driver-1.5.4.tar.gz
Algorithm Hash digest
SHA256 2fba38331fab9ef020c244a1b55577f1aa3e7f3631c3bd25d30406db82334fbe
MD5 c7f3158aee17136ff81dd28d5029ec59
BLAKE2b-256 927c1d49b6435d990b4e577a3ae6cc327128b3da98eacbedd3063a10d01ed5f2

See more details on using hashes here.

File details

Details for the file get_chrome_driver-1.5.4-py3-none-any.whl.

File metadata

File hashes

Hashes for get_chrome_driver-1.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 139165e37f79ee8ad8ceaf27b289181ef685484a944bcc958605c4edbfa9bd32
MD5 3b0ca0631343d75727ec52a11459b7e2
BLAKE2b-256 e3f647cdf99e8d2ce99af05f63b77d595e7033b75fc8185e89fd2dcc23f04bec

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.5.4 This release

2 files

1.5.3

2 files

1.5.2

2 files

1.5.1

2 files

1.5.0

2 files

1.4

2 files

1.3.20

1 file

1.3.19

1 file

1.3.18

1 file

1.3.17

1 file

1.3.16

1 file

1.3.15

1 file

1.3.14

1 file

1.3.13

1 file

1.3.12

1 file

1.3.11

1 file

1.3.10

1 file

1.3.9

1 file

1.3.8

1 file

1.3.7

1 file

1.3.6

1 file

1.3.4

1 file

1.3.3

1 file

1.3.2

1 file

1.3.1

1 file

1.3

1 file

1.2

1 file

1.1.42

1 file

1.1.41

1 file

1.1.40

1 file

1.1.39

1 file

1.1.38

1 file

1.1.37

1 file

1.1.36

1 file

1.1.34

1 file

1.1.33

1 file

1.1.32

1 file

1.1.31

1 file

1.1.30

1 file

1.1.28

1 file

1.1.27

1 file

1.1.26

1 file

1.1.25

1 file

1.1.24

1 file

1.1.23

1 file

1.1.20

1 file

1.1.15

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page