Script to automatically install the ChromeDriver release compatible with the client's Chrome version.
Project description
chromedriver_autoinstall
Automatically downloads the version of ChromeDriver compatible with the client's version of Chrome (currently supports MacOS and Windows). 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:
Write import chromedriver_autoinstall
in your file, in the directory of which chromedriver will be installed.
Quick Example:
from selenium import webdriver
import os
import chromedriver_autoinstall
import time
PATH = "./chromedriver"
URL = "https://github.com/RoastSea8/chromedriver-autoinstaller"
def main():
chromedriver_autoinstall.install()
# os.chmod('./chromedriver', 0o755) # MacOS only
driver = webdriver.Chrome(PATH)
driver.get(URL)
time.sleep(1000)
if __name__ == "__main__":
main()
Linux support coming soon.
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
Close
Hashes for chromedriver_autoinstall-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35dcf0d5de48c8f3a4c9aea16db2edad36063035772068b5d63fb34d5dfd5581 |
|
MD5 | 7a4971f206b74c3f410bed50e7e763a2 |
|
BLAKE2b-256 | bceb63256f3d77b274b64916ad767d855ac316949282f7632b58ab2d2e4011cf |
Close
Hashes for chromedriver_autoinstall-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cca53088843f4c6396bfb09860b8c290830c466b717f52031750954d164a7bc1 |
|
MD5 | 47e3433b1257dfc374d5023085586773 |
|
BLAKE2b-256 | 296a19ee7bf42a2ed3caa3f05d67e5850ff705ceb2abbf9bf42ffc38ed78b765 |