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:
- 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 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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a9eaf6d5fe34d4fe7746289f3c9ef8ad8d17b7899b81d0fb7963310eb3fda18 |
|
MD5 | a2d394fc8757cba9fcd165ea71ef8153 |
|
BLAKE2b-256 | c6b800cef799f2b34dfaadedb5b6bc1b3da13e40c64a5dcee85085ca62e1ebbb |
Close
Hashes for chromedriver_autoinstall-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c665f7848806a025824a7d19fd750e1d0645139a01f33b7639c46b09803f63c4 |
|
MD5 | e085a597dfd8c6bb31df521f5ec9c13e |
|
BLAKE2b-256 | 375b0a9745a58fe9d1e8a117d7bcf259a69e6554679e86336f7169e6a917c5e6 |