get-gecko-driver


Nameget-gecko-driver JSON
Version 1.3.13 PyPI version JSON
download
home_pagehttps://github.com/zaironjacobs/get-gecko-driver
SummaryA tool to download and install GeckoDriver.
upload_time2023-07-22 09:38:20
maintainer
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 - Status](https://img.shields.io/pypi/status/get-gecko-driver)](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)

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.

This Python package runs through a Jenkins test pipeline every hour to ensure proper functionality.

## 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": "",
    "docs_url": null,
    "requires_python": ">=3",
    "maintainer_email": "",
    "keywords": "gecko,geckodriver,download,install,web,driver,tool",
    "author": "Zairon Jacobs",
    "author_email": "zaironjacobs@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/e4/7c/c1b2f2d299de7ab25d93b33008c362d8ac4805f805d6157862063bac9827/get-gecko-driver-1.3.13.tar.gz",
    "platform": null,
    "description": "Get GeckoDriver\r\n=================\r\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/get-gecko-driver?color=blue)](https://pypi.python.org/pypi/get-gecko-driver)\r\n[![PyPI](https://img.shields.io/pypi/v/get-gecko-driver?color=blue)](https://pypi.python.org/pypi/get-gecko-driver)\r\n[![PyPI - Status](https://img.shields.io/pypi/status/get-gecko-driver)](https://pypi.python.org/pypi/get-gecko-driver)\r\n[![PyPI - License](https://img.shields.io/pypi/l/get-gecko-driver)](https://pypi.python.org/pypi/get-gecko-driver)\r\n\r\nA tool to download and install GeckoDriver. Download the latest version or another specific version. You can use this\r\ntool as a package import or as a command-line application.\r\n\r\nThis Python package runs through a Jenkins test pipeline every hour to ensure proper functionality.\r\n\r\n## Install\r\n\r\nTo install:\r\n\r\n```console\r\npip install get-gecko-driver\r\n```\r\n\r\nTo upgrade:\r\n\r\n```console\r\npip install get-gecko-driver --upgrade\r\n```\r\n\r\n## Usage\r\n\r\n#### Install and use GeckoDriver with Selenium\r\n\r\n```Python\r\nimport time\r\nfrom get_gecko_driver import GetGeckoDriver\r\nfrom selenium import webdriver\r\n\r\n# Install the driver:\r\n# Downloads the latest GeckoDriver version\r\n# Adds the downloaded GeckoDriver to path\r\nget_driver = GetGeckoDriver()\r\nget_driver.install()\r\n\r\n# Use the installed GeckoDriver with Selenium\r\ndriver = webdriver.Firefox()\r\ndriver.get(\"https://google.com\")\r\ntime.sleep(3)\r\ndriver.quit()\r\n```\r\n\r\n#### For downloading only\r\n\r\n```Python\r\nfrom get_gecko_driver import GetGeckoDriver\r\n\r\nget_driver = GetGeckoDriver()\r\n\r\n# Print the latest version\r\nprint(get_driver.latest_version())\r\n\r\n# Print the latest version download link\r\nprint(get_driver.latest_version_url())\r\n\r\n# Print the download link of a specific version\r\nprint(get_driver.version_url('0.27.0'))\r\n\r\n# Download the latest driver version\r\n# Optional: use output_path= to specify where to download the driver\r\n# Optional: use extract=True to extract the file\r\nget_driver.download_latest_version(extract=True)\r\n\r\n# Download a specific driver version\r\n# Optional: use output_path= to specify where to download the driver\r\n# Optional: use extract=True to extract the file\r\nget_driver.download_version('0.27.0', extract=True)\r\n```\r\n\r\n#### Command-line\r\n\r\nPrint the latest version url of all platforms:\r\n\r\n```console\r\nget-gecko-driver --latest-urls\r\n```\r\n\r\nPrint the latest version:\r\n\r\n```console\r\nget-gecko-driver --latest-version\r\n```\r\n\r\nPrint the latest version url:\r\n\r\n```console\r\nget-gecko-driver --latest-url\r\n```\r\n\r\nDownload the latest version and extract the file:\r\n\r\n```console\r\nget-gecko-driver --download-latest --extract\r\n```\r\n\r\nDownload a specific version and extract the file:\r\n\r\n```console\r\nget-gecko-driver --download-version 0.27.0 --extract\r\n```\r\n\r\n#### The downloaded driver can be found at:\r\n\r\n*`<current directory>/<geckodriver>/<version>/<bin>/<geckodriver>`*\r\n\r\n### Options\r\n\r\n```\r\n--help                      Show help.\r\n\r\n--latest-version            Print the latest version.\r\n\r\n--latest-urls               Print the latest version urls for all platforms.\r\n\r\n--version-url               Print the version url.\r\n\r\n--latest-url                Print the latest version url.\r\n\r\n--download-latest           Download the latest version.\r\n\r\n--download-version          Download a specific version.\r\n\r\n--extract                   Extract the compressed driver file.\r\n\r\n--version                   App version.\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A tool to download and install GeckoDriver.",
    "version": "1.3.13",
    "project_urls": {
        "Download": "https://github.com/zaironjacobs/get-gecko-driver/archive/v1.3.13.tar.gz",
        "Homepage": "https://github.com/zaironjacobs/get-gecko-driver"
    },
    "split_keywords": [
        "gecko",
        "geckodriver",
        "download",
        "install",
        "web",
        "driver",
        "tool"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e47cc1b2f2d299de7ab25d93b33008c362d8ac4805f805d6157862063bac9827",
                "md5": "6f257237555ec224e4544853406ee0f8",
                "sha256": "ed6cd65fbe3efd0520a119cf0d4a1aa08e585173f12fed25c5e758515f8dfbb7"
            },
            "downloads": -1,
            "filename": "get-gecko-driver-1.3.13.tar.gz",
            "has_sig": false,
            "md5_digest": "6f257237555ec224e4544853406ee0f8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3",
            "size": 9671,
            "upload_time": "2023-07-22T09:38:20",
            "upload_time_iso_8601": "2023-07-22T09:38:20.232077Z",
            "url": "https://files.pythonhosted.org/packages/e4/7c/c1b2f2d299de7ab25d93b33008c362d8ac4805f805d6157862063bac9827/get-gecko-driver-1.3.13.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-22 09:38:20",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "zaironjacobs",
    "github_project": "get-gecko-driver",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "get-gecko-driver"
}
        
Elapsed time: 0.10579s