Script to automatically install the ChromeDriver release compatible with the client's Chrome version.
Project description
chromedriver-autoinstaller
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.
Usage:
Import the script
module and run script.install()
Example:
from selenium import webdriver
import os
import script
import time
PATH = "./chromedriver"
URL = "https://github.com/RoastSea8/chromedriver-autoinstaller"
def main():
script.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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bdc2af6ac739c83a623ecd0aa9755b2fbf5ca1cca15ddbbff09c8b9e8b83dc2 |
|
MD5 | 3f98f1e2f7de9ccaefb592a6855bd550 |
|
BLAKE2b-256 | f4c4de0a33f970e2579f0f039dd56865ca5e5e74e3e4c5e75875584cf473121c |
Close
Hashes for chromedriver_autoinstall-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b696a8b427c798ba5023ab85757a1aaf60871c193bec703fb4ef741ef8b9a23e |
|
MD5 | dd58ca7778c8010a924af62e25afaa67 |
|
BLAKE2b-256 | 814137a4f9635d3b685cacdefbfe73ed3cd37d4a1900d26a812e395e618e78fa |