A tool to download GeckoDriver.
Project description
Get GeckoDriver
A tool to download GeckoDriver. You can use this tool as a package import or as a command-line application.
Install
To install:
$ pip install get-gecko-driver
To upgrade:
$ pip install get-gecko-driver --upgrade
Usage
Package import
from get_gecko_driver import GetGeckoDriver
# Platforms to choose from: 'win32', 'win64', 'linux32', linux64', or 'macos'
get_driver = GetGeckoDriver(platform='win64')
# Print the latest release version
print(get_driver.latest_release_version())
# Print the latest release download link
print(get_driver.latest_release_url())
# Print the download link of a specific release
print(get_driver.release_url('0.27.0'))
# Download the latest 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_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('0.27.0', extract=True)
Command-line
Print the latest release url of all platforms:
$ get-gecko-driver --latest-urls
Print the latest release version:
$ get-gecko-driver --latest-version
Print the latest release url of a specific platform:
$ get-gecko-driver --latest-url linux64
Download the latest release of a specific platform:
$ get-gecko-driver --download-latest win64
Download a specific release for a specific platform and extract the zip file:
$ get-gecko-driver --download-release macos 0.27.0 --extract
Downloaded drivers will be downloaded by default at:
<current directory>/<gecko_driver_downloads>/<release version>/<platform>/<geckodriver>
Options
--help Show help.
--latest-version Print the latest release version.
--latest-urls Print the latest release urls for all platforms.
--release-url Print the url of a release for a platform.
--latest-url Print the latest release url for a platform.
--download-latest Download the latest release for a platform.
--download-release Download a release.
--extract Option to extract the 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
get-gecko-driver-0.1.1.tar.gz
(9.3 kB
view hashes)