get-chrome-driver


Nameget-chrome-driver JSON
Version 1.3.19 PyPI version JSON
download
home_pagehttps://github.com/zaironjacobs/get-chrome-driver
SummaryA tool to download and install ChromeDriver.
upload_time2023-07-22 09:35:07
maintainer
docs_urlNone
authorZairon Jacobs
requires_python>=3
licenseMIT
keywords chrome chromedriver download install web driver tool
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Get ChromeDriver
=================
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/get-chrome-driver?color=blue)](https://pypi.python.org/pypi/get-chrome-driver)
[![PyPI](https://img.shields.io/pypi/v/get-chrome-driver?color=blue)](https://pypi.python.org/pypi/get-chrome-driver)
[![PyPI - Status](https://img.shields.io/pypi/status/get-chrome-driver)](https://pypi.python.org/pypi/get-chrome-driver)
[![PyPI - License](https://img.shields.io/pypi/l/get-chrome-driver)](https://pypi.python.org/pypi/get-chrome-driver)

A tool to download and install ChromeDriver. Automatically download a ChromeDriver version for the current installed
Chrome version. Or you can choose to download the beta version (if one is currently available), the stable 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-chrome-driver
```

To upgrade:

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

## Usage

#### Install and use ChromeDriver with Selenium

```Python
import time
from get_chrome_driver import GetChromeDriver
from selenium import webdriver

# Install the driver:
# Downloads ChromeDriver for the installed Chrome version on the machine
# Adds the downloaded ChromeDriver to path
get_driver = GetChromeDriver()
get_driver.install()

# Use the installed ChromeDriver with Selenium
driver = webdriver.Chrome()
driver.get("https://google.com")
time.sleep(3)
driver.quit()
```

#### For downloading only

```Python
from get_chrome_driver import GetChromeDriver

get_driver = GetChromeDriver()

# Print the stable version
print(get_driver.stable_version())

# Print the stable version download link
print(get_driver.stable_version_url())

# Print the download link of a specific version
print(get_driver.version_url('84.0.4147.30'))

# Auto download ChromeDriver for the installed Chrome version
# Optional: use output_path= to specify where to download the driver
# Optional: use extract=True to extract the file
get_driver.auto_download(extract=True)

# Download the stable driver version
# Optional: use output_path= to specify where to download the driver
# Optional: use extract=True to extract the zip file
get_driver.download_stable_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('84.0.4147.30', extract=True)
```

#### Command-line

Print the stable version url of all platforms:

```console
get-chrome-driver --latest-urls
```

Print the stable version:

```console
get-chrome-driver --stable-version
```

Print the stable version url:

```console
get-chrome-driver --stable-url
```

Auto download ChromeDriver for the current installed Chrome version and extract the file:

```console
get-chrome-driver --auto-download --extract
```

Download the stable version and extract the file:

```console
get-chrome-driver --download-stable --extract
```

Download a specific version and extract the file:

```console
get-chrome-driver --download-version 84.0.4147.30 --extract
```

#### The downloaded driver can be found at:

*`<current directory>/<chromedriver>/<version>/<bin>/<chromedriver>`*

*Note: Beta version related options and functions will only work if one is currently available.*

### Options

```
--help                      Show help.

--beta-version              Print the beta version.

--stable-version            Print the stable version.

--latest-urls               Print the beta and stable version urls for all platforms.

--version-url               Print the url of a version.

--beta-url                  Print the beta version url.

--stable-url                Print the stable version url.

--auto-download             Download a ChromeDriver version for the installed Chrome Version.

--download-beta             Download the beta version.

--download-stable           Download the stable 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-chrome-driver",
    "name": "get-chrome-driver",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3",
    "maintainer_email": "",
    "keywords": "chrome,chromedriver,download,install,web,driver,tool",
    "author": "Zairon Jacobs",
    "author_email": "zaironjacobs@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/de/4b/fb4583f4e55767ee5174def64b5162353b8d629ccf077d0867f9974522cc/get-chrome-driver-1.3.19.tar.gz",
    "platform": null,
    "description": "Get ChromeDriver\r\n=================\r\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/get-chrome-driver?color=blue)](https://pypi.python.org/pypi/get-chrome-driver)\r\n[![PyPI](https://img.shields.io/pypi/v/get-chrome-driver?color=blue)](https://pypi.python.org/pypi/get-chrome-driver)\r\n[![PyPI - Status](https://img.shields.io/pypi/status/get-chrome-driver)](https://pypi.python.org/pypi/get-chrome-driver)\r\n[![PyPI - License](https://img.shields.io/pypi/l/get-chrome-driver)](https://pypi.python.org/pypi/get-chrome-driver)\r\n\r\nA tool to download and install ChromeDriver. Automatically download a ChromeDriver version for the current installed\r\nChrome version. Or you can choose to download the beta version (if one is currently available), the stable version or\r\nanother specific version. You can use this tool 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-chrome-driver\r\n```\r\n\r\nTo upgrade:\r\n\r\n```console\r\npip install get-chrome-driver --upgrade\r\n```\r\n\r\n## Usage\r\n\r\n#### Install and use ChromeDriver with Selenium\r\n\r\n```Python\r\nimport time\r\nfrom get_chrome_driver import GetChromeDriver\r\nfrom selenium import webdriver\r\n\r\n# Install the driver:\r\n# Downloads ChromeDriver for the installed Chrome version on the machine\r\n# Adds the downloaded ChromeDriver to path\r\nget_driver = GetChromeDriver()\r\nget_driver.install()\r\n\r\n# Use the installed ChromeDriver with Selenium\r\ndriver = webdriver.Chrome()\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_chrome_driver import GetChromeDriver\r\n\r\nget_driver = GetChromeDriver()\r\n\r\n# Print the stable version\r\nprint(get_driver.stable_version())\r\n\r\n# Print the stable version download link\r\nprint(get_driver.stable_version_url())\r\n\r\n# Print the download link of a specific version\r\nprint(get_driver.version_url('84.0.4147.30'))\r\n\r\n# Auto download ChromeDriver for the installed Chrome 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.auto_download(extract=True)\r\n\r\n# Download the stable driver version\r\n# Optional: use output_path= to specify where to download the driver\r\n# Optional: use extract=True to extract the zip file\r\nget_driver.download_stable_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('84.0.4147.30', extract=True)\r\n```\r\n\r\n#### Command-line\r\n\r\nPrint the stable version url of all platforms:\r\n\r\n```console\r\nget-chrome-driver --latest-urls\r\n```\r\n\r\nPrint the stable version:\r\n\r\n```console\r\nget-chrome-driver --stable-version\r\n```\r\n\r\nPrint the stable version url:\r\n\r\n```console\r\nget-chrome-driver --stable-url\r\n```\r\n\r\nAuto download ChromeDriver for the current installed Chrome version and extract the file:\r\n\r\n```console\r\nget-chrome-driver --auto-download --extract\r\n```\r\n\r\nDownload the stable version and extract the file:\r\n\r\n```console\r\nget-chrome-driver --download-stable --extract\r\n```\r\n\r\nDownload a specific version and extract the file:\r\n\r\n```console\r\nget-chrome-driver --download-version 84.0.4147.30 --extract\r\n```\r\n\r\n#### The downloaded driver can be found at:\r\n\r\n*`<current directory>/<chromedriver>/<version>/<bin>/<chromedriver>`*\r\n\r\n*Note: Beta version related options and functions will only work if one is currently available.*\r\n\r\n### Options\r\n\r\n```\r\n--help                      Show help.\r\n\r\n--beta-version              Print the beta version.\r\n\r\n--stable-version            Print the stable version.\r\n\r\n--latest-urls               Print the beta and stable version urls for all platforms.\r\n\r\n--version-url               Print the url of a version.\r\n\r\n--beta-url                  Print the beta version url.\r\n\r\n--stable-url                Print the stable version url.\r\n\r\n--auto-download             Download a ChromeDriver version for the installed Chrome Version.\r\n\r\n--download-beta             Download the beta version.\r\n\r\n--download-stable           Download the stable 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 ChromeDriver.",
    "version": "1.3.19",
    "project_urls": {
        "Download": "https://github.com/zaironjacobs/get-chrome-driver/archive/v1.3.19.tar.gz",
        "Homepage": "https://github.com/zaironjacobs/get-chrome-driver"
    },
    "split_keywords": [
        "chrome",
        "chromedriver",
        "download",
        "install",
        "web",
        "driver",
        "tool"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "de4bfb4583f4e55767ee5174def64b5162353b8d629ccf077d0867f9974522cc",
                "md5": "4bebd7b158b390f4bb5d4e930ed1e236",
                "sha256": "4e5406e9354902dac6070a70b0515ed29883a685a2bb2c69de56103cbfacb2ad"
            },
            "downloads": -1,
            "filename": "get-chrome-driver-1.3.19.tar.gz",
            "has_sig": false,
            "md5_digest": "4bebd7b158b390f4bb5d4e930ed1e236",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3",
            "size": 12593,
            "upload_time": "2023-07-22T09:35:07",
            "upload_time_iso_8601": "2023-07-22T09:35:07.522653Z",
            "url": "https://files.pythonhosted.org/packages/de/4b/fb4583f4e55767ee5174def64b5162353b8d629ccf077d0867f9974522cc/get-chrome-driver-1.3.19.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-22 09:35:07",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "zaironjacobs",
    "github_project": "get-chrome-driver",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "get-chrome-driver"
}
        
Elapsed time: 0.10823s