A tool to download ChromeDriver.
Project description
Get ChromeDriver
A tool to download ChromeDriver. You can choose to download the beta release (if one is currently available), the 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 stable release version
print(get_driver.stable_release_version())
# Print the stable release download link
print(get_driver.stable_release_url())
# Print the download link of a specific release
print(get_driver.release_url('84.0.4147.30'))
# Download the 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_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>
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file get-chrome-driver-1.1.20.tar.gz
.
File metadata
- Download URL: get-chrome-driver-1.1.20.tar.gz
- Upload date:
- Size: 10.2 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.1 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 761bd67773b36f6d5ea285a87dfb43ae21e198fb4143920e0d89426fa3642988 |
|
MD5 | ac5a6d9ca6fdbc727e5935d973fbeef0 |
|
BLAKE2b-256 | 2626783e27b99f77b90e9ef18ab0b12b141e6c90786708c3d9f749ba3677eb6c |