Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adistomar/chromedriver_autoinstall
Script to automatically install the ChromeDriver release compatible with the client's Chrome version.
https://github.com/adistomar/chromedriver_autoinstall
autoinstall autoinstaller autoinstallscript automation chromedriver script
Last synced: about 1 month ago
JSON representation
Script to automatically install the ChromeDriver release compatible with the client's Chrome version.
- Host: GitHub
- URL: https://github.com/adistomar/chromedriver_autoinstall
- Owner: adistomar
- License: mit
- Created: 2022-06-16T02:28:10.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-21T05:38:39.000Z (7 months ago)
- Last Synced: 2024-10-07T21:50:09.674Z (3 months ago)
- Topics: autoinstall, autoinstaller, autoinstallscript, automation, chromedriver, script
- Language: Python
- Homepage: https://pypi.org/project/chromedriver-autoinstall/
- Size: 23.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chromedriver_autoinstall
Automatically downloads the version of [ChromeDriver](https://chromedriver.chromium.org/downloads) compatible with the client's version of Chrome. Supports all versions of Chrome.
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
```shell
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](https://github.com/RoastSea8/chromedriver_autoinstall#readme) for this use case.## Quick Example:
```py
from selenium import webdriver
import chromedriver_autoinstall
import timeURL = "https://github.com/RoastSea8/chromedriver_autoinstall"
def main():
chromedriver_autoinstall.install()
driver = webdriver.Chrome()
driver.get(URL)
time.sleep(1000)if __name__ == "__main__":
main()
```