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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef612a1960dd4d68d5c03cc4dbaf8140bedfe615d4849aca332ded3b0cfdb237 |
|
MD5 | b62aa2600565e8bb9b82edfbbe532ac4 |
|
BLAKE2b-256 | 9f4c60844e144f738100f6fe2cc3ee2e3f0c42b4cb7bc325c888bd3f75e7a8b6 |
Close
Hashes for chromedriver_autoinstall-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08313e478aecd74b87c721ab9a56d79a8cae04b3b5f81bb8f64dfaf1a3338389 |
|
MD5 | 5afb215d9a7fe84e22a666ba5faccc86 |
|
BLAKE2b-256 | 48f3ccaf4df57713ca38d31132ddcb97b8d5700a0cbc52818108c75211bf6161 |