selenium_driver_updater
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 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.
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
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.
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.
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
selenium-driver-updater --help
To see all available arguments and commands
Or you can use alias
selupd --help
for easier use
This example shows how you can use this console updater to download chromedriver to current dir
selenium-driver-updater -d chromedriver
Or you can use console updater to download chromedriver and geckodriver at the same time
selenium-driver-updater -d chromedriver,geckodriver
Supported Selenium Binaries
Chromedriver
DriverUpdater.chromedriver
For installing or updating chromedriver binary
All supported OS for this driver are:
- Windows
- Linux
- MacOS
- MacOS on M-based processors
Geckodriver
DriverUpdater.geckodriver
For installing or updating geckodriver binary
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
All supported OS's for this driver are:
- Windows
- Linux
- MacOS
Edgedriver
DriverUpdater.edgedriver
For installing or updating edgedriver binary
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
All supported OS's for this driver are:
- MacOS
Supported browsers for checking version
Chrome Browser
For checking version chrome browser
Firefox Browser
For checking version firefox browser
Opera Browser
For checking version opera browser
Edge Browser
For checking version edge browser
Metadata
Release files for selenium-driver-updater 7.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| selenium_driver_updater-7.0.1.tar.gz | 24.6 kB | Without provenance | Details for selenium_driver_updater-7.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| selenium_driver_updater-7.0.1-py3-none-any.whl | Python 3 | none | any | Details for selenium_driver_updater-7.0.1-py3-none-any.whl |
Total release size: 61.9 kB
Release files / selenium_driver_updater-7.0.1.tar.gz
| Download URL | selenium_driver_updater-7.0.1.tar.gz |
|---|---|
| Size | 24.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e6ef5983c154b4e70363fdb0258206ea6c14e5ffc35706e8a22a7cd55737b25
|
|
BLAKE2b-256 checksum How to use checksums |
d8c0d521f47b60cb3a6ab7449902e3e86afbbc9728274476129e28a06854d784
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Release files / selenium_driver_updater-7.0.1-py3-none-any.whl
| Download URL | selenium_driver_updater-7.0.1-py3-none-any.whl |
|---|---|
| Size | 37.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c052e2d21d5cdf1a46873cb6340da61655959570dcf4da1720c694426fa10a8a
|
|
BLAKE2b-256 checksum How to use checksums |
bb761aae0644791851fa1fe97a632389e9d754783abd9a94585f9bb10efba9e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Security for selenium-driver-updater 7.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.