Get GeckoDriver
A tool to download and install GeckoDriver. Download the latest 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-gecko-driver
To upgrade:
pip install get-gecko-driver --upgrade
Usage
Install and use GeckoDriver with Selenium
import time
from get_gecko_driver import GetGeckoDriver
from selenium import webdriver
# Install the driver:
# Downloads the latest GeckoDriver version
# Adds the downloaded GeckoDriver to path
get_driver = GetGeckoDriver()
get_driver.install()
# Use the installed GeckoDriver with Selenium
driver = webdriver.Firefox()
driver.get("https://google.com")
time.sleep(3)
driver.quit()
For downloading only
from get_gecko_driver import GetGeckoDriver
get_driver = GetGeckoDriver()
# Print the latest version
print(get_driver.latest_version())
# Print the latest version download link
print(get_driver.latest_version_url())
# Print the download link of a specific version
print(get_driver.version_url('0.27.0'))
# Download the latest driver version
# Optional: use output_path= to specify where to download the driver
# Optional: use extract=True to extract the file
get_driver.download_latest_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('0.27.0', extract=True)
Command-line
Print the latest version url of all platforms:
get-gecko-driver --latest-urls
Print the latest version:
get-gecko-driver --latest-version
Print the latest version url:
get-gecko-driver --latest-url
Download the latest version and extract the file:
get-gecko-driver --download-latest --extract
Download a specific version and extract the file:
get-gecko-driver --download-version 0.27.0 --extract
The downloaded driver can be found at:
<current directory>/<geckodriver>/<version>/<bin>/<geckodriver>
Options
--help Show help.
--latest-version Print the latest version.
--latest-urls Print the latest version urls for all platforms.
--version-url Print the version url.
--latest-url Print the latest version url.
--download-latest Download the latest version.
--download-version Download a specific version.
--extract Extract the compressed driver file.
--driver-filename Print the driver filename.
--version App version.
Metadata
Release files for get-gecko-driver 1.5.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| get_gecko_driver-1.5.5.tar.gz | 10.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| get_gecko_driver-1.5.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.3 kB
Release files / get_gecko_driver-1.5.5.tar.gz
| Download URL | get_gecko_driver-1.5.5.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e6e731f4132fce10cef00a3473d05ccbb52f9496d6dfac354c5c681f97fb58d
|
|
BLAKE2b-256 checksum How to use checksums |
d702009b01c4c0c1db7b668a5ac25f764c914a2282465d48abf0f57657382dec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / get_gecko_driver-1.5.5-py3-none-any.whl
| Download URL | get_gecko_driver-1.5.5-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a814e942029b5d6d5376cce879f845b641b6b1dce219ccdc4f332c2a4d83b3f8
|
|
BLAKE2b-256 checksum How to use checksums |
1381ddc64b8448b74738339fb4297c0336bba3cbd8f687f8e4beacf1148c6e9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|