Installer for chromedriver. (Auto sync version to GoogleChrome)
Project description
chromedriver-binary-sync
Overview
Sync chromedriver version with the installed chrome version at runtime.
- Download the version of chromedriver to match chrome at runtime.
- Internally, the function of chromedriver-binary-auto is used.
- It matches the version at install time.
Requirements
- chromedriver-binary-auto
License
OSS used
Installation
pip
pip install chromedriver-binary-sync
github
pip install git+https://github.com/bugph0bia/chromedriver-binary-sync.git
Usage
from selenium import webdriver
import chromedriver_binary_sync
# Download chromedriver to current directory.
# (chromedriver version matches installed chrome)
chromedriver_binary_sync.download()
driver = webdriver.Chrome()
driver.get("http://www.python.org")
assert "Python" in driver.title
Note
The path to chromedriver is not automatically added to the "PATH" environment variable, so it is necessary to pass the path to the chromedriver download destination in addition to the current directory.
Case: Download to other than the current directory
chromedriver_binary_sync.download(download_dir='...')
Case: To match a portable version of Chrome (For Windows)
chromedriver_binary_sync.download(chrome_portable=r'...\GoogleChromePortable\App\Chrome-bin\chrome.exe')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for chromedriver_binary_sync-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77183548fc1b7f0956c8246629a15ff3780cf68c749064039cf52e240a1a22a0 |
|
MD5 | 36977ccb5e707cefa59bd2de51dd28a7 |
|
BLAKE2b-256 | 9db487d406f5e273819c492036ae692a5998bcde847ba18cf1d2d5656886cf63 |
Close
Hashes for chromedriver_binary_sync-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d02cfe9d4a2572cb38f9b5970322ed57d0c9f4e96eb28cbee6cf94fad873863c |
|
MD5 | 354b951c18b038dba2c2adff4433fb60 |
|
BLAKE2b-256 | ce828dc38183cf7f70f26a634f898317b428c5bd9b6ffbf3b4af48658922a3e4 |