Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shawncaza/python-chromedriver-autoupdater

The chromedriver auto upddater for distribution.
https://github.com/shawncaza/python-chromedriver-autoupdater

browser-automation browser-driver chrome chromedriver

Last synced: about 2 months ago
JSON representation

The chromedriver auto upddater for distribution.

Awesome Lists containing this project

README

        

# chromedriver-autoinstaller
Automatically download and install [chromedriver](https://chromedriver.chromium.org/) that supports the currently installed version of chrome. This installer supports Linux, MacOS and Windows operating systems.

## Installation

```bash
pip install chromedriver-autoinstaller
```

## Usage
Just type `import chromedriver_autoinstaller` in the module you want to use chromedriver.

## Example
```
from selenium import webdriver
import chromedriver_autoinstaller

chromedriver_autoinstaller.install() # Check if the current version of chromedriver exists
# and if it doesn't exist, download it automatically,
# then add chromedriver to path

driver = webdriver.Chrome()
driver.get("http://www.python.org")
assert "Python" in driver.title
```