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 hashes)

Uploaded Source

Supported by

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