https://github.com/alexpdev/python-chromedriver-autoinstaller
https://github.com/alexpdev/python-chromedriver-autoinstaller
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/alexpdev/python-chromedriver-autoinstaller
- Owner: alexpdev
- Created: 2023-06-11T06:53:44.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-06-11T06:56:13.000Z (almost 2 years ago)
- Last Synced: 2025-02-10T12:21:21.042Z (4 months ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pychromedriver
Download [chromedriver](https://chromedriver.chromium.org/) for the currently installed version of chrome.## Installation
```bash
```
## Usage
When install is called it downloads the correct version of chromedriver and adds it to the sys.path.
```python
from selenium import webdriver
from pychromedriver import ChromeInstallerChromeInstaller.install()
driver = webdriver.Chrome()
```Calling install will also return the the path to the downloaded binary.
```
from selenium import webdriver
from selenium.webdriver.chrome.service import Service as ChromeService
from pychromedriver import ChromeInstallerpath_to_chromedriver_binary = ChromeInstaller.install()
service = ChromeService(path_to_chromedriver_binary)
driver = webdriver.Chrome()
```