Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/hargikas/latest-chromedriver

Download the ChromeDriver based on Google Chrome version
https://github.com/hargikas/latest-chromedriver

chrome-browser chromedriver darwin linux python selenium windows

Last synced: 11 days ago
JSON representation

Download the ChromeDriver based on Google Chrome version

Awesome Lists containing this project

README

        

# Latest ChromeDriver

The `latest_chromedriver` is a module for python scripts in order to find the correct version of the ChromeDriver depending on Google Chrome version.

## Purpose

The purpose of this module is not to be deployed to live system like webservers or similar.

This module is intended for use in scripts that are running on different client machines, where Google Chrome could be in different versions or auto updated.

## Getting Started

These instructions will get you a copy of the project up and running on your local. Currently there are three systems supported:

* [Windows](https://en.wikipedia.org/wiki/Microsoft_Windows)
* [Linux](https://en.wikipedia.org/wiki/Linux)
* [Darwin](https://en.wikipedia.org/wiki/Darwin_(operating_system))

### Example Usage

```python
import latest_chromedriver

latest_chromedriver.safely_set_chromedriver_path()
```

If `Google Chrome` is installed in a different location:

```python
import latest_chromedriver

latest_chromedriver.safely_set_chromedriver_path(chrome_path='/adhoc/locatation/googe-chrome')
```

If `chromedriver` needs to be installed in a different location:

```python
import latest_chromedriver

latest_chromedriver.safely_set_chromedriver_path(chromedriver_folder='/tmp')
```

### Prerequisites

In order to install this module you need to have:

* Google Chrome
* Python >= 3

### Installation

Install `latest-chromedriver` with [pip](https://pip.pypa.io)

```shell
python -m pip install latest-chromedriver
```

## Built With

* [logzero](https://logzero.readthedocs.io/en/latest/) - A simple library for easy logging (could change it to standard logging module)
* [requests](https://requests.readthedocs.io/en/latest/) - Requests is an elegant and simple HTTP library for Python, built for human beings
* [ubelt](https://ubelt.readthedocs.io/en/latest/ubelt.html) - A “utility belt” of commonly needed utility and helper functions
* [py-cpuinfo](https://github.com/workhorsy/py-cpuinfo) - Gets CPU info with pure Python

## Contributing

Please read [CONTRIBUTING.md](https://github.com/hargikas/latest-chromedriver/blob/main/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.

## Authors

* **Charalampos Gkikas** - *Initial work* - [hargikas](https://github.com/hargikas)

## License

This project is licensed under the MIT License - see the [LICENSE](https://github.com/hargikas/latest-chromedriver/blob/main/LICENSE) file for details