Cromdriver
Auto downloader for chromedriver
Cromdriver is a library to download automatically the latest Chromedriver release for Selenium.
Import the lib in your Selenium project and it will download and the AppData directory the latest release from http://chromedriver.storage.googleapis.com/index.html.
You can get any version published in the website.
Drivers are downloaded :
- Mac OS X :
~/Library/Application Support/cromdriver - Unix :
~/.local/share/cromdriver - Windows :
C:\Users\<username>\AppData\Local\cromdriver\cromdriver
Installation
Install the library with PIP
pip install cromdriver
Usage example
There are two ways to use the library :
Selenium python file
from selenium import webdriver
import cromdriver
driver = webdriver.Chrome()
driver.get('https://www.google.com')
import os
from selenium import webdriver
import cromdriver
path = os.path.join(cromdriver.get_chromedriver_path(), 'chromedriver.exe')
driver = webdriver.Chrome(executable_path=path)
driver.get('https://www.google.com')
CLI
~$ cromdriver get
Downloading version : 86.0.4240.22
Path : C:\Users\gauth\AppData\Local\cromdriver\cromdriver\RELEASE\86.0.4240.22
~$ cromdriver get --version 85.0.4183.87 --platform linux
Downloading version : 85.0.4183.87
Path : C:\Users\gauth\AppData\Local\cromdriver\cromdriver\RELEASE\85.0.4183.87
~$ cromdriver test
Last release on your machine : 86.0.4240.22
Last release on http://chromedriver.storage.googleapis.com/index.html : 86.0.4240.22
~$ cromdriver list
Chromedrivers downloaded :
- 85.0.4183.87
- 86.0.4240.22
~$ cromdriver del --version 85.0.4183.87
Version 85.0.4183.87 deleted
When you use this CLI, PATH environnement variable is not updated. You will need to add the directory path to the ENV.
Release History
- 0.4.0
- CHANGE: Update README.md
- ADD: Github action to deploy in Pypi
- 0.3.0
- ADD : First working version
Meta
Gauthier Chaty – @gokender – gauthier.chaty+github@outlook.com
Distributed under the MIT license. See LICENSE for more information.
Metadata
Release files for cromdriver 0.4.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 |
|---|---|---|---|---|
| cromdriver-0.4.1.tar.gz | 4.5 kB | Without provenance | Details for cromdriver-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cromdriver-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for cromdriver-0.4.1-py3-none-any.whl |
Total release size: 10.4 kB
Release files / cromdriver-0.4.1.tar.gz
| Download URL | cromdriver-0.4.1.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7954d8d6fc2bd1e3aa5408aff927c6fd661d99c6a094ce3c053fe60b8fdf9473
|
|
BLAKE2b-256 checksum How to use checksums |
6498f6c3d7fbada332ccbb3e6a41067d1b62bfde817302063dd89f6251e8bd5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0
|
Release files / cromdriver-0.4.1-py3-none-any.whl
| Download URL | cromdriver-0.4.1-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1523a09cc99515bac510ed94f40f26a460bd8a31f443f3ba0ef0828d7ecc9869
|
|
BLAKE2b-256 checksum How to use checksums |
5e9f6b1b46c789d14a0171fef6b2ace548cd3ff8e5c160cb576c2c82aaacbac9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0
|
Security for cromdriver 0.4.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.