get-gecko-driver


Nameget-gecko-driver JSON
Version 1.4 PyPI version JSON
download
home_pagehttps://github.com/zaironjacobs/get-gecko-driver
SummaryA tool to download and install GeckoDriver.
upload_time2025-01-24 02:23:28
maintainerNone
docs_urlNone
authorZairon Jacobs
requires_python>=3
licenseMIT
keywords gecko geckodriver download install web driver tool
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Get GeckoDriver

[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/get-gecko-driver?color=blue)](https://pypi.python.org/pypi/get-gecko-driver)
[![PyPI](https://img.shields.io/pypi/v/get-gecko-driver?color=blue)](https://pypi.python.org/pypi/get-gecko-driver)
[![PyPI - License](https://img.shields.io/pypi/l/get-gecko-driver)](https://pypi.python.org/pypi/get-gecko-driver)

[![tests](https://github.com/zaironjacobs/get-gecko-driver/actions/workflows/test.yml/badge.svg)](https://github.com/zaironjacobs/get-gecko-driver/actions/workflows/test.yml)

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:

```console
pip install get-gecko-driver
```

To upgrade:

```console
pip install get-gecko-driver --upgrade
```

## Usage

#### Install and use GeckoDriver with Selenium

```Python
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

```Python
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:

```console
get-gecko-driver --latest-urls
```

Print the latest version:

```console
get-gecko-driver --latest-version
```

Print the latest version url:

```console
get-gecko-driver --latest-url
```

Download the latest version and extract the file:

```console
get-gecko-driver --download-latest --extract
```

Download a specific version and extract the file:

```console
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.

--version                   App version.
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/zaironjacobs/get-gecko-driver",
    "name": "get-gecko-driver",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3",
    "maintainer_email": null,
    "keywords": "gecko, geckodriver, download, install, web, driver, tool",
    "author": "Zairon Jacobs",
    "author_email": "zaironjacobs@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/94/81/79dc8fce839822b53852ef543c529e170593fc42874162dfe2cd9bfb83a9/get_gecko_driver-1.4.tar.gz",
    "platform": null,
    "description": "# Get GeckoDriver\n\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/get-gecko-driver?color=blue)](https://pypi.python.org/pypi/get-gecko-driver)\n[![PyPI](https://img.shields.io/pypi/v/get-gecko-driver?color=blue)](https://pypi.python.org/pypi/get-gecko-driver)\n[![PyPI - License](https://img.shields.io/pypi/l/get-gecko-driver)](https://pypi.python.org/pypi/get-gecko-driver)\n\n[![tests](https://github.com/zaironjacobs/get-gecko-driver/actions/workflows/test.yml/badge.svg)](https://github.com/zaironjacobs/get-gecko-driver/actions/workflows/test.yml)\n\nA tool to download and install GeckoDriver. Download the latest version or another specific version. You can use this\ntool as a package import or as a command-line application.\n\n## Install\n\nTo install:\n\n```console\npip install get-gecko-driver\n```\n\nTo upgrade:\n\n```console\npip install get-gecko-driver --upgrade\n```\n\n## Usage\n\n#### Install and use GeckoDriver with Selenium\n\n```Python\nimport time\nfrom get_gecko_driver import GetGeckoDriver\nfrom selenium import webdriver\n\n# Install the driver:\n# Downloads the latest GeckoDriver version\n# Adds the downloaded GeckoDriver to path\nget_driver = GetGeckoDriver()\nget_driver.install()\n\n# Use the installed GeckoDriver with Selenium\ndriver = webdriver.Firefox()\ndriver.get(\"https://google.com\")\ntime.sleep(3)\ndriver.quit()\n```\n\n#### For downloading only\n\n```Python\nfrom get_gecko_driver import GetGeckoDriver\n\nget_driver = GetGeckoDriver()\n\n# Print the latest version\nprint(get_driver.latest_version())\n\n# Print the latest version download link\nprint(get_driver.latest_version_url())\n\n# Print the download link of a specific version\nprint(get_driver.version_url('0.27.0'))\n\n# Download the latest driver version\n# Optional: use output_path= to specify where to download the driver\n# Optional: use extract=True to extract the file\nget_driver.download_latest_version(extract=True)\n\n# Download a specific driver version\n# Optional: use output_path= to specify where to download the driver\n# Optional: use extract=True to extract the file\nget_driver.download_version('0.27.0', extract=True)\n```\n\n#### Command-line\n\nPrint the latest version url of all platforms:\n\n```console\nget-gecko-driver --latest-urls\n```\n\nPrint the latest version:\n\n```console\nget-gecko-driver --latest-version\n```\n\nPrint the latest version url:\n\n```console\nget-gecko-driver --latest-url\n```\n\nDownload the latest version and extract the file:\n\n```console\nget-gecko-driver --download-latest --extract\n```\n\nDownload a specific version and extract the file:\n\n```console\nget-gecko-driver --download-version 0.27.0 --extract\n```\n\n#### The downloaded driver can be found at:\n\n*`<current directory>/<geckodriver>/<version>/<bin>/<geckodriver>`*\n\n### Options\n\n```\n--help                      Show help.\n\n--latest-version            Print the latest version.\n\n--latest-urls               Print the latest version urls for all platforms.\n\n--version-url               Print the version url.\n\n--latest-url                Print the latest version url.\n\n--download-latest           Download the latest version.\n\n--download-version          Download a specific version.\n\n--extract                   Extract the compressed driver file.\n\n--version                   App version.\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A tool to download and install GeckoDriver.",
    "version": "1.4",
    "project_urls": {
        "Download": "https://github.com/zaironjacobs/get-gecko-driver/archive/v1.4.tar.gz",
        "Homepage": "https://github.com/zaironjacobs/get-gecko-driver"
    },
    "split_keywords": [
        "gecko",
        " geckodriver",
        " download",
        " install",
        " web",
        " driver",
        " tool"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "5ef82ffa13fd3c26feeec4caa44829e0ea585b95d5111f03d4523e71b15596bc",
                "md5": "ca7b95a8377b114f64e9f6e16900431c",
                "sha256": "67ee0528e85c842ca92b9a2052a39a8940d4196b82ec4b407dbed2a424674e76"
            },
            "downloads": -1,
            "filename": "get_gecko_driver-1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ca7b95a8377b114f64e9f6e16900431c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3",
            "size": 11151,
            "upload_time": "2025-01-24T02:23:27",
            "upload_time_iso_8601": "2025-01-24T02:23:27.185745Z",
            "url": "https://files.pythonhosted.org/packages/5e/f8/2ffa13fd3c26feeec4caa44829e0ea585b95d5111f03d4523e71b15596bc/get_gecko_driver-1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "948179dc8fce839822b53852ef543c529e170593fc42874162dfe2cd9bfb83a9",
                "md5": "8edb99ab4eeca8c05372af14408a9ec9",
                "sha256": "0a023816dacb363200ae7546e7f75104cae5f22d7f2946cff600b13395c2c5aa"
            },
            "downloads": -1,
            "filename": "get_gecko_driver-1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "8edb99ab4eeca8c05372af14408a9ec9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3",
            "size": 10000,
            "upload_time": "2025-01-24T02:23:28",
            "upload_time_iso_8601": "2025-01-24T02:23:28.734070Z",
            "url": "https://files.pythonhosted.org/packages/94/81/79dc8fce839822b53852ef543c529e170593fc42874162dfe2cd9bfb83a9/get_gecko_driver-1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-24 02:23:28",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "zaironjacobs",
    "github_project": "get-gecko-driver",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "get-gecko-driver"
}
        
Elapsed time: 0.88985s