Script to automatically install the ChromeDriver release compatible with the client's Chrome version. Supports all versions of Chrome.
Project description
chromedriver_autoinstall
Automatically downloads the version of ChromeDriver compatible with the client's version of Chrome. Supports all versions of Chrome. Can be imported as a module and used to automatically reinstall ChromeDriver in its most updated/compatible version for any program that requires it.
Install:
Python 3.6 or higher is required
pip install chromedriver_autoinstall
Usage:
- To download chromedriver in the current directory, run
install_chromedriver
. - To use the autoinstaller as part of a program, write
import chromedriver_autoinstall
in your file. See the example below for this use case.
Quick Example:
from selenium import webdriver
import chromedriver_autoinstall
import time
URL = "https://github.com/RoastSea8/chromedriver_autoinstall"
def main():
chromedriver_autoinstall.install()
driver = webdriver.Chrome()
driver.get(URL)
time.sleep(1000)
if __name__ == "__main__":
main()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file chromedriver_autoinstall-0.0.9.tar.gz
.
File metadata
- Download URL: chromedriver_autoinstall-0.0.9.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64fdbdf11aef535af884745be994f29f4240ab2b52fb64c951928104ba824b8c |
|
MD5 | 9ebc1a63d2c58bba6e0b022c5ad7629c |
|
BLAKE2b-256 | ede72a8b76025868bc7c5dd31ffeb070c5aaac7115dc417b5f0c420c7079fb14 |
Provenance
File details
Details for the file chromedriver_autoinstall-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: chromedriver_autoinstall-0.0.9-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87b8fb8ca78ef3fe94de6e095f5899de81c597b60021ec7dee2115c4045ae797 |
|
MD5 | 011826d4c8e462c029921a2322d3c795 |
|
BLAKE2b-256 | 493dc725b90b8d1899022f87df2ed6e7d38e2a2d161358b58dedf2313d8cb07a |