chromedriver-binary-sync-0.1.0
توضیحات
Installer for chromedriver. (Auto sync version to GoogleChrome)
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | chromedriver-binary-sync-0.1.0 |
| نام | chromedriver-binary-sync |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | bugph0bia |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/bugph0bia/chromedriver-binary-sync |
| آدرس اینترنتی | https://pypi.org/project/chromedriver-binary-sync/ |
| مجوز | MIT |
chromedriver-binary-sync
===

[](LICENSE)
[Japanese Page](./README.ja.md)
## 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](https://pypi.org/project/chromedriver-binary-auto/) is used.
- It matches the version at install time.
## Requirements
- chromedriver-binary-auto
## License
[MIT License](./LICENSE)
## OSS used
- [python-chromedriver-binary](https://github.com/danielkaiser/python-chromedriver-binary)
## Installation
### pip
```
pip install chromedriver-binary-sync
```
### github
```
pip install git+https://github.com/bugph0bia/chromedriver-binary-sync.git
```
## Usage
```py
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
```py
chromedriver_binary_sync.download(download_dir='...')
```
### Case: To match a portable version of Chrome (For Windows)
```py
chromedriver_binary_sync.download(chrome_portable=r'...\GoogleChromePortable\App\Chrome-bin\chrome.exe')
```
نیازمندی
| مقدار | نام |
|---|---|
| - | chromedriver-binary-auto |
نحوه نصب
نصب پکیج whl chromedriver-binary-sync-0.1.0:
pip install chromedriver-binary-sync-0.1.0.whl
نصب پکیج tar.gz chromedriver-binary-sync-0.1.0:
pip install chromedriver-binary-sync-0.1.0.tar.gz