chromedriver-autoinstall-0.0.7
توضیحات
Script to automatically install the ChromeDriver release compatible with the client's Chrome version.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Microsoft :: Windows |
| نام فایل | chromedriver-autoinstall-0.0.7 |
| نام | chromedriver-autoinstall |
| نسخه کتابخانه | 0.0.7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | RoastSea8 (Aditya Tomar) |
| ایمیل نویسنده | aditya26042005@gmail.com |
| آدرس صفحه اصلی | https://github.com/RoastSea8/chromedriver_autoinstall |
| آدرس اینترنتی | https://pypi.org/project/chromedriver-autoinstall/ |
| مجوز | MIT |
# chromedriver_autoinstall
Automatically downloads the version of [ChromeDriver](https://chromedriver.chromium.org/downloads) compatible with the client's version of Chrome (currently supports MacOS and Windows).
Can be imported as a module and used to automatically reinstall ChromeDriver in its most updated/compatible version for any program that requires it.
## Install:
#### Python 3.6 or higher is required
```shell
pip install chromedriver_autoinstall
```
## Usage:
- To download chromedriver in the current directory, run `install_chromedriver`.
- To use the autoinstaller as part of a program, write `import chromedriver_autoinstall` in your file. See the [example below](https://github.com/RoastSea8/chromedriver-autoinstaller#quick-example) for this use case.
## Quick Example:
```py
from selenium import webdriver
import os
import chromedriver_autoinstall
import time
PATH = "./chromedriver"
URL = "https://github.com/RoastSea8/chromedriver-autoinstaller"
def main():
chromedriver_autoinstall.install()
# os.chmod('./chromedriver', 0o755) # MacOS only
driver = webdriver.Chrome(PATH)
driver.get(URL)
time.sleep(1000)
if __name__ == "__main__":
main()
```
#### Linux support coming soon.
نیازمندی
| مقدار | نام |
|---|---|
| - | bs4 |
| - | requests |
| - | lxml |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl chromedriver-autoinstall-0.0.7:
pip install chromedriver-autoinstall-0.0.7.whl
نصب پکیج tar.gz chromedriver-autoinstall-0.0.7:
pip install chromedriver-autoinstall-0.0.7.tar.gz