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
File details
Details for the file chromedriver_autoinstall-0.0.2.tar.gz
.
File metadata
- Download URL: chromedriver_autoinstall-0.0.2.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
8248f1e909b6f83d93647fd63996c8ed0fb81f93b4200d2af44bff6290ac5d15
|
|
MD5 |
c254115ff069fe475395ada99dae77d8
|
|
BLAKE2b-256 |
bc991ac7b576f23dc64460d0c4ac96dc7adfc6b19ad656e6cb16bd6f289c9be7
|
File details
Details for the file chromedriver_autoinstall-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: chromedriver_autoinstall-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
762ddf917fe1c8e2ab53f37175ff60f5a18c1ea3b12e2fd7fca501db5c1c969e
|
|
MD5 |
5a84d78f6652dcd74ac1c986138715c3
|
|
BLAKE2b-256 |
fc68ff08d8399f3acb7edeef074cf2c5bbd0c41c3a1020e13d5d26ce15b05b98
|