Skip to main content

Get GeckoDriver

PyPI - Python Version PyPI PyPI - License

tests

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.

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-1.5.4.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

get_gecko_driver-1.5.4-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file get_gecko_driver-1.5.4.tar.gz.

File metadata

  • Download URL: get_gecko_driver-1.5.4.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.7

File hashes

Hashes for get_gecko_driver-1.5.4.tar.gz
Algorithm Hash digest
SHA256 ef2b5b06f1911659cafde018b77405956a587d452d112342283c7c1cf28724b4
MD5 54503f0bafb43fd96453031fc1739445
BLAKE2b-256 2366a78416f6eded70db2fbd405652e8fe889e2ed03d20e6cd9613dc3274e878

See more details on using hashes here.

File details

Details for the file get_gecko_driver-1.5.4-py3-none-any.whl.

File metadata

File hashes

Hashes for get_gecko_driver-1.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7aaf36cea5be8420675d6b4ee5f73ba196e49313d9c2d1f632cf9068305ca101
MD5 03993fd3400f424e23c4aab2c5204d02
BLAKE2b-256 7260098c59151301c87f9878df18682e5cd69bbc5ad146f4c119b7b86d8be881

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.5.4 This release

2 files

1.5.3

2 files

1.5.2

2 files

1.5.1

2 files

1.5.0

2 files

1.4

2 files

1.3.13

1 file

1.3.12

1 file

1.3.10

1 file

1.3.9

1 file

1.3.8

1 file

1.3.7

1 file

1.3.6

1 file

1.3.5

1 file

1.3.4

1 file

1.3.3

1 file

1.3.2

1 file

1.3.1

1 file

1.3

1 file

0.1.17

1 file

0.1.16

1 file

0.1.15

1 file

0.1.14

1 file

0.1.13

1 file

0.1.11

1 file

0.1.10

1 file

0.1.9

1 file

0.1.8

1 file

0.1.7

1 file

0.1.6

1 file

0.1.5

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

0.1.0

1 file

Supported by

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