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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7579dc7d6a414960c38de652042d2295e4e8f4b3b37a8c72a0f778186c1024a8 |
|
MD5 | ad2a5111c54b9257dd01ff4bf652480b |
|
BLAKE2b-256 | 644fd756a82b88cd92cacd945856624df1fc7d4988d35e6fa70e2cf99d10bbf8 |
Close
Hashes for chromedriver_autoinstall-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0aaad06994121a47ab450ae98d50bb1f7176595cef4154f3316c26f94e006d9 |
|
MD5 | 7ee100635470a57af4154fc3a48ab4ba |
|
BLAKE2b-256 | 604571ceb0ada74fa64b8701679a4a4fe9fac5a68a43de29f9d9e4e7545a6b7f |