geckodriver-autoinstaller-0.1.0
توضیحات
Automatically install geckodriver that supports the currently installed version of chrome.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | geckodriver-autoinstaller-0.1.0 |
| نام | geckodriver-autoinstaller |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Yeongbin Jo |
| ایمیل نویسنده | yeongbin.jo@pylab.co |
| آدرس صفحه اصلی | https://github.com/yeongbin-jo/python-geckodriver-autoinstaller |
| آدرس اینترنتی | https://pypi.org/project/geckodriver-autoinstaller/ |
| مجوز | MIT |
# geckodriver-autoinstaller
Automatically download and install [geckodriver](https://github.com/mozilla/geckodriver/releases/latest) that supports the currently installed version of firefox. This installer supports Linux, MacOS and Windows operating systems.
## Installation
```bash
pip install geckodriver-autoinstaller
```
## Usage
Just type `import geckodriver_autoinstaller` in the module you want to use geckodriver.
## Example
```
from selenium import webdriver
import geckodriver_autoinstaller
geckodriver_autoinstaller.install() # Check if the current version of geckodriver exists
# and if it doesn't exist, download it automatically,
# then add geckodriver to path
driver = webdriver.Firefox()
driver.get("http://www.python.org")
assert "Python" in driver.title
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3 | Python |
نحوه نصب
نصب پکیج whl geckodriver-autoinstaller-0.1.0:
pip install geckodriver-autoinstaller-0.1.0.whl
نصب پکیج tar.gz geckodriver-autoinstaller-0.1.0:
pip install geckodriver-autoinstaller-0.1.0.tar.gz