selenium-driver-updater


Nameselenium-driver-updater JSON
Version 7.0.0 PyPI version JSON
download
home_pagehttps://github.com/Svinokur/selenium_driver_updater
SummaryDownload or update your Selenium driver binaries and their browsers automatically with this package
upload_time2024-08-14 19:34:46
maintainerNone
docs_urlNone
authorStanislav Vinokur
requires_pythonNone
licenseMIT
keywords chromedriver operadriver edgedriver safaridriver selenium seleniumdriver chromedriver-binary selenium-binary selenium-python selenium-driver geckodriver geckodriver-binary operadriver-binary edgedriver-binary safaridriver-binary chromebrowser chrome-browser firefox firefox-browser selenium-update selenium-updater updater
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # selenium_driver_updater

[![PyPI version](https://badge.fury.io/py/selenium-driver-updater.svg)](https://badge.fury.io/py/selenium-driver-updater)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Downloads](https://static.pepy.tech/badge/selenium-driver-updater)](https://pepy.tech/project/selenium-driver-updater)
[![Downloads](https://static.pepy.tech/badge/selenium-driver-updater/month)](https://pepy.tech/project/selenium-driver-updater)
[![Downloads](https://static.pepy.tech/badge/selenium-driver-updater/week)](https://pepy.tech/project/selenium-driver-updater)

[![Build](https://github.com/Svinokur/selenium_driver_updater/actions/workflows/build.yml/badge.svg)](https://github.com/Svinokur/selenium_driver_updater/actions/workflows/build.yml)

It is a fast and convenience package that can automatically download or update Selenium webdriver binaries and their browsers for different OS.

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install selenium_driver_updater.

```
pip install selenium-driver-updater
```

## Usage in code
This example shows how you can use this library to download chromedriver binary and use it immediately. The chromedriver will be downloaded to base directory.
```python
from selenium_driver_updater import DriverUpdater
from selenium import webdriver

filename = DriverUpdater.install(DriverUpdater.chromedriver)

driver = webdriver.Chrome(filename)
driver.get('https://google.com')

```

Or you can specify a path where you want to download a chromedriver to
```python
from selenium_driver_updater import DriverUpdater
from selenium import webdriver
import os

base_dir = os.path.dirname(os.path.abspath(__file__))

filename = DriverUpdater.install(path=base_dir, driver_name=DriverUpdater.chromedriver)

driver = webdriver.Chrome(filename)
driver.get('https://google.com')

```

You can also specify the version type (beta, dev, canary) you want to download.
```python
from selenium_driver_updater import DriverUpdater
from selenium import webdriver

filename = DriverUpdater.install(driver_name=DriverUpdater.chromedriver, version=DriverUpdater.chromedriver_beta)

driver = webdriver.Chrome(filename)
driver.get('https://google.com')

```

You can also use library to download and update chromedriver and geckodriver binaries at the same time.
```python
from selenium_driver_updater import DriverUpdater
from selenium import webdriver
import os

base_dir = os.path.dirname(os.path.abspath(__file__))
list_drivers = [DriverUpdater.chromedriver, DriverUpdater.geckodriver]

filenames = DriverUpdater.install(path=base_dir, driver_name=list_drivers)
print(filenames)

driver_chrome = webdriver.Chrome(filename[0])
driver_chrome.get('https://google.com')

driver_firefox = webdriver.Firefox(filename[1])
driver_firefox.get('https://google.com')

```

## Usage with help of command line
Use 
```bash
selenium-driver-updater --help
```
To see all available arguments and commands

Or you can use alias
```bash
selupd --help
```
for easier use

This example shows how you can use this console updater to download chromedriver to current dir 
```bash
selenium-driver-updater -d chromedriver
```

Or you can use console updater to download chromedriver and geckodriver at the same time
```bash
selenium-driver-updater -d chromedriver,geckodriver
```

# Supported Selenium Binaries

### ``Chromedriver`` 
#### ``DriverUpdater.chromedriver``

For installing or updating [chromedriver binary](https://developer.chrome.com/docs/chromedriver/)

All supported OS for this driver are:

- Windows
- Linux
- MacOS
- MacOS on M-based processors

### ``Geckodriver`` 
#### ``DriverUpdater.geckodriver``

For installing or updating [geckodriver binary](https://github.com/mozilla/geckodriver/releases)

All supported OS's for this driver are:

- Windows
- Windows ARM
- Linux
- Linux ARM
- MacOS
- MacOS on M-based processors

### ``Operadriver`` 
#### ``DriverUpdater.operadriver``

For installing or updating [operadriver binary](https://github.com/operasoftware/operachromiumdriver)

All supported OS's for this driver are:

- Windows
- Linux
- MacOS

### ``Edgedriver`` 
#### ``DriverUpdater.edgedriver``

For installing or updating [edgedriver binary](https://developer.microsoft.com/ru-ru/microsoft-edge/tools/webdriver/)

All supported OS's for this driver are:

- Windows
- Windows ARM
- MacOS
- MacOS on M-based processors
- Linux

### ``SafariDriver`` 
#### ``DriverUpdater.safaridriver``

For installing or updating [safaridriver binary](https://developer.apple.com/documentation/webkit/testing_with_webdriver_in_safari)

All supported OS's for this driver are:

- MacOS

# Supported browsers for checking version

### ``Chrome Browser``

For checking version [chrome browser](https://www.google.com/chrome/)

### ``Firefox Browser``

For checking version [firefox browser](https://www.mozilla.org/en-US/firefox/)

### ``Opera Browser``

For checking version [opera browser](https://www.opera.com)

### ``Edge Browser``

For checking version [edge browser](https://www.microsoft.com/en-us/edge)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Svinokur/selenium_driver_updater",
    "name": "selenium-driver-updater",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "chromedriver, operadriver, edgedriver, safaridriver, selenium, seleniumdriver, chromedriver-binary, selenium-binary, selenium-python, selenium-driver, geckodriver, geckodriver-binary, operadriver-binary, edgedriver-binary, safaridriver-binary, chromebrowser, chrome-browser, firefox, firefox-browser, selenium-update, selenium-updater, updater",
    "author": "Stanislav Vinokur",
    "author_email": "stasvinokur@yahoo.com",
    "download_url": "https://files.pythonhosted.org/packages/f7/7e/085b4185984c5ae9e827d4a16ea6ab44eeb771eaa6f09d9852826684301a/selenium_driver_updater-7.0.0.tar.gz",
    "platform": null,
    "description": "# selenium_driver_updater\n\n[![PyPI version](https://badge.fury.io/py/selenium-driver-updater.svg)](https://badge.fury.io/py/selenium-driver-updater)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Downloads](https://static.pepy.tech/badge/selenium-driver-updater)](https://pepy.tech/project/selenium-driver-updater)\n[![Downloads](https://static.pepy.tech/badge/selenium-driver-updater/month)](https://pepy.tech/project/selenium-driver-updater)\n[![Downloads](https://static.pepy.tech/badge/selenium-driver-updater/week)](https://pepy.tech/project/selenium-driver-updater)\n\n[![Build](https://github.com/Svinokur/selenium_driver_updater/actions/workflows/build.yml/badge.svg)](https://github.com/Svinokur/selenium_driver_updater/actions/workflows/build.yml)\n\nIt is a fast and convenience package that can automatically download or update Selenium webdriver binaries and their browsers for different OS.\n\n## Installation\n\nUse the package manager [pip](https://pip.pypa.io/en/stable/) to install selenium_driver_updater.\n\n```\npip install selenium-driver-updater\n```\n\n## Usage in code\nThis example shows how you can use this library to download chromedriver binary and use it immediately. The chromedriver will be downloaded to base directory.\n```python\nfrom selenium_driver_updater import DriverUpdater\nfrom selenium import webdriver\n\nfilename = DriverUpdater.install(DriverUpdater.chromedriver)\n\ndriver = webdriver.Chrome(filename)\ndriver.get('https://google.com')\n\n```\n\nOr you can specify a path where you want to download a chromedriver to\n```python\nfrom selenium_driver_updater import DriverUpdater\nfrom selenium import webdriver\nimport os\n\nbase_dir = os.path.dirname(os.path.abspath(__file__))\n\nfilename = DriverUpdater.install(path=base_dir, driver_name=DriverUpdater.chromedriver)\n\ndriver = webdriver.Chrome(filename)\ndriver.get('https://google.com')\n\n```\n\nYou can also specify the version type (beta, dev, canary) you want to download.\n```python\nfrom selenium_driver_updater import DriverUpdater\nfrom selenium import webdriver\n\nfilename = DriverUpdater.install(driver_name=DriverUpdater.chromedriver, version=DriverUpdater.chromedriver_beta)\n\ndriver = webdriver.Chrome(filename)\ndriver.get('https://google.com')\n\n```\n\nYou can also use library to download and update chromedriver and geckodriver binaries at the same time.\n```python\nfrom selenium_driver_updater import DriverUpdater\nfrom selenium import webdriver\nimport os\n\nbase_dir = os.path.dirname(os.path.abspath(__file__))\nlist_drivers = [DriverUpdater.chromedriver, DriverUpdater.geckodriver]\n\nfilenames = DriverUpdater.install(path=base_dir, driver_name=list_drivers)\nprint(filenames)\n\ndriver_chrome = webdriver.Chrome(filename[0])\ndriver_chrome.get('https://google.com')\n\ndriver_firefox = webdriver.Firefox(filename[1])\ndriver_firefox.get('https://google.com')\n\n```\n\n## Usage with help of command line\nUse \n```bash\nselenium-driver-updater --help\n```\nTo see all available arguments and commands\n\nOr you can use alias\n```bash\nselupd --help\n```\nfor easier use\n\nThis example shows how you can use this console updater to download chromedriver to current dir \n```bash\nselenium-driver-updater -d chromedriver\n```\n\nOr you can use console updater to download chromedriver and geckodriver at the same time\n```bash\nselenium-driver-updater -d chromedriver,geckodriver\n```\n\n# Supported Selenium Binaries\n\n### ``Chromedriver`` \n#### ``DriverUpdater.chromedriver``\n\nFor installing or updating [chromedriver binary](https://developer.chrome.com/docs/chromedriver/)\n\nAll supported OS for this driver are:\n\n- Windows\n- Linux\n- MacOS\n- MacOS on M-based processors\n\n### ``Geckodriver`` \n#### ``DriverUpdater.geckodriver``\n\nFor installing or updating [geckodriver binary](https://github.com/mozilla/geckodriver/releases)\n\nAll supported OS's for this driver are:\n\n- Windows\n- Windows ARM\n- Linux\n- Linux ARM\n- MacOS\n- MacOS on M-based processors\n\n### ``Operadriver`` \n#### ``DriverUpdater.operadriver``\n\nFor installing or updating [operadriver binary](https://github.com/operasoftware/operachromiumdriver)\n\nAll supported OS's for this driver are:\n\n- Windows\n- Linux\n- MacOS\n\n### ``Edgedriver`` \n#### ``DriverUpdater.edgedriver``\n\nFor installing or updating [edgedriver binary](https://developer.microsoft.com/ru-ru/microsoft-edge/tools/webdriver/)\n\nAll supported OS's for this driver are:\n\n- Windows\n- Windows ARM\n- MacOS\n- MacOS on M-based processors\n- Linux\n\n### ``SafariDriver`` \n#### ``DriverUpdater.safaridriver``\n\nFor installing or updating [safaridriver binary](https://developer.apple.com/documentation/webkit/testing_with_webdriver_in_safari)\n\nAll supported OS's for this driver are:\n\n- MacOS\n\n# Supported browsers for checking version\n\n### ``Chrome Browser``\n\nFor checking version [chrome browser](https://www.google.com/chrome/)\n\n### ``Firefox Browser``\n\nFor checking version [firefox browser](https://www.mozilla.org/en-US/firefox/)\n\n### ``Opera Browser``\n\nFor checking version [opera browser](https://www.opera.com)\n\n### ``Edge Browser``\n\nFor checking version [edge browser](https://www.microsoft.com/en-us/edge)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Download or update your Selenium driver binaries and their browsers automatically with this package",
    "version": "7.0.0",
    "project_urls": {
        "Homepage": "https://github.com/Svinokur/selenium_driver_updater"
    },
    "split_keywords": [
        "chromedriver",
        " operadriver",
        " edgedriver",
        " safaridriver",
        " selenium",
        " seleniumdriver",
        " chromedriver-binary",
        " selenium-binary",
        " selenium-python",
        " selenium-driver",
        " geckodriver",
        " geckodriver-binary",
        " operadriver-binary",
        " edgedriver-binary",
        " safaridriver-binary",
        " chromebrowser",
        " chrome-browser",
        " firefox",
        " firefox-browser",
        " selenium-update",
        " selenium-updater",
        " updater"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6237001bc490c7849694ddd68d57015d28f7deecb6d5c1de3d8580bb52b71447",
                "md5": "da2df73511d512bf09562065b6ad0e19",
                "sha256": "610e9e7df082cc0862e94a94b3adb2a12a9237f34857398d017a60d121b71cb3"
            },
            "downloads": -1,
            "filename": "selenium_driver_updater-7.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "da2df73511d512bf09562065b6ad0e19",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 37241,
            "upload_time": "2024-08-14T19:34:45",
            "upload_time_iso_8601": "2024-08-14T19:34:45.606940Z",
            "url": "https://files.pythonhosted.org/packages/62/37/001bc490c7849694ddd68d57015d28f7deecb6d5c1de3d8580bb52b71447/selenium_driver_updater-7.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f77e085b4185984c5ae9e827d4a16ea6ab44eeb771eaa6f09d9852826684301a",
                "md5": "4ecf7cfaf894dd524e9393c55bdaef8e",
                "sha256": "bc487b8f1e02f5e6e8a0db8d5ed9ffe007fd7d1b2814bc4726c3cfee1197918e"
            },
            "downloads": -1,
            "filename": "selenium_driver_updater-7.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "4ecf7cfaf894dd524e9393c55bdaef8e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 24486,
            "upload_time": "2024-08-14T19:34:46",
            "upload_time_iso_8601": "2024-08-14T19:34:46.651562Z",
            "url": "https://files.pythonhosted.org/packages/f7/7e/085b4185984c5ae9e827d4a16ea6ab44eeb771eaa6f09d9852826684301a/selenium_driver_updater-7.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-14 19:34:46",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Svinokur",
    "github_project": "selenium_driver_updater",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "selenium-driver-updater"
}
        
Elapsed time: 0.31018s