Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/hargikas/latest-chromedriver
- Owner: hargikas
- License: mit
- Created: 2022-06-20T07:15:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-01T06:12:19.000Z (9 months ago)
- Last Synced: 2024-12-19T22:20:01.397Z (13 days ago)
- Topics: chrome-browser, chromedriver, darwin, linux, python, selenium, windows
- Language: Python
- Homepage:
- Size: 133 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: change_version.py
- Contributing: CONTRIBUTING.md
- License: LICENSE
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_chromedriverlatest_chromedriver.safely_set_chromedriver_path()
```If `Google Chrome` is installed in a different location:
```python
import latest_chromedriverlatest_chromedriver.safely_set_chromedriver_path(chrome_path='/adhoc/locatation/googe-chrome')
```If `chromedriver` needs to be installed in a different location:
```python
import latest_chromedriverlatest_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