Skip to main content

A tool to download ChromeDriver.

Project description

Get ChromeDriver

PyPI - Python Version PyPI PyPI - Status PyPI - License

A tool to download ChromeDriver. You can choose to download the latest beta release (if one is currently available), the latest stable release or a specific release. 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

Package import

from get_chrome_driver import GetChromeDriver

# Platforms to choose from: 'win', 'linux' or 'mac'
get_driver = GetChromeDriver(platform='win')

# Print the latest stable release version
print(get_driver.latest_stable_release_version())

# Print the latest stable release download link
print(get_driver.latest_stable_release_url())

# Print the download link of a specific release
print(get_driver.release_url('84.0.4147.30'))

# Download the latest stable driver release
# Optional: use output_path='' to specify where to download the driver
# Optional: use extract=True to extract the zip file
get_driver.download_latest_stable_release(output_path='webdriver', extract=True)

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

Command-line

Print the stable release url of all platforms:

$ get-chrome-driver --latest-urls

Print the stable release version:

$ get-chrome-driver --stable-version

Print the stable release url of a specific platform:

$ get-chrome-driver --stable-url linux

Download the stable release of a specific platform:

$ get-chrome-driver --download-stable win

Download a specific release for a specific platform and extract the zip file:

$ get-chrome-driver --download-release mac 84.0.4147.30 --extract

Downloaded drivers will be downloaded by default at:

<current directory>/<chrome_driver_downloads>/<release version>/<platform>/<chromedriver.zip>

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

Options

--help                      Show help.

--beta-version              Print the beta release version.

--stable-version            Print the stable release version.

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

--release-url               Print the url of a release for a platform.

--beta-url                  Print the beta release url for a platform.

--stable-url                Print the stable release url for a platform.

--download-beta             Download the beta release for a platform.

--download-stable           Download the stable release for a platform.

--download-release          Download a release.

--extract                   Option to extract the zip file.

--version                   Program version.

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

get-chrome-driver-1.1.15.tar.gz (10.3 kB view details)

Uploaded Source

File details

Details for the file get-chrome-driver-1.1.15.tar.gz.

File metadata

  • Download URL: get-chrome-driver-1.1.15.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0

File hashes

Hashes for get-chrome-driver-1.1.15.tar.gz
Algorithm Hash digest
SHA256 cd83ecbfe07cb19831c315244c12f9ac38435cae71c29baf45e11386a4ed72ca
MD5 4f9b1909ed7f0ba7445b5b2a1fd8cd0c
BLAKE2b-256 c09324a18f8225023c1b5fb7fb8bace39f3d6820a1b69d65c79dbf5dea79cf2b

See more details on using hashes here.

Supported by

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