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.
Metadata
Release files for chromedriver-autoinstall 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chromedriver_autoinstall-0.0.2.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chromedriver_autoinstall-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.8 kB
Release files / chromedriver_autoinstall-0.0.2.tar.gz
| Download URL | chromedriver_autoinstall-0.0.2.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8248f1e909b6f83d93647fd63996c8ed0fb81f93b4200d2af44bff6290ac5d15
|
|
BLAKE2b-256 checksum How to use checksums |
bc991ac7b576f23dc64460d0c4ac96dc7adfc6b19ad656e6cb16bd6f289c9be7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.12
|
Release files / chromedriver_autoinstall-0.0.2-py3-none-any.whl
| Download URL | chromedriver_autoinstall-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
762ddf917fe1c8e2ab53f37175ff60f5a18c1ea3b12e2fd7fca501db5c1c969e
|
|
BLAKE2b-256 checksum How to use checksums |
fc68ff08d8399f3acb7edeef074cf2c5bbd0c41c3a1020e13d5d26ce15b05b98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.12
|