Metadata-Version: 2.1
Name: chromedriver_autoinstall
Version: 0.0.5
Summary: Script to automatically install the ChromeDriver release compatible with the client's Chrome version.
Home-page: https://github.com/RoastSea8/chromedriver-autoinstaller
Author: RoastSea8 (Aditya Tomar)
Author-email: aditya26042005@gmail.com
License: MIT
Keywords: chromedriver,install,automation,autoinstall,autoinstaller,autoinstallscript,selenium
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: System :: Installation/Setup
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# chromedriver_autoinstall
Automatically downloads the version of [ChromeDriver](https://chromedriver.chromium.org/downloads) 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
```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-autoinstaller#quick-example) for this use case.

## Quick Example:
```py
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.


