geckodriver-autoinstaller

0.1.0 · deprecated · verified Sun Apr 12

geckodriver-autoinstaller is a Python library designed to automatically download and install the correct version of geckodriver that supports the currently installed version of Mozilla Firefox. It aims to simplify the setup process for Selenium users who need to automate Firefox. The latest version is 0.1.0, released in February 2020, and the project appears to be unmaintained.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to use `geckodriver-autoinstaller` to ensure the geckodriver executable is available and compatible with your Firefox browser, then initializes a Selenium Firefox WebDriver instance.

import geckodriver_autoinstaller
from selenium import webdriver

# Automatically install geckodriver
geckodriver_autoinstaller.install()

# Initialize Firefox WebDriver
driver = webdriver.Firefox()

# Example usage
driver.get("https://www.google.com")
print(f"Page title: {driver.title}")

driver.quit()

view raw JSON →