ChromePy-0.0.5
توضیحات
Python Selenium Remote for ChromeDriver
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | ChromePy-0.0.5 |
| نام | ChromePy |
| نسخه کتابخانه | 0.0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Matheus Vanzan |
| ایمیل نویسنده | matheusvnzn@gmail.com |
| آدرس صفحه اصلی | https://github.com/matheusvanzan/chromepy |
| آدرس اینترنتی | https://pypi.org/project/ChromePy/ |
| مجوز | - |
# ChromePy
ChromePy makes it possible to create just one Google `Chrome` instance and multiple `ChromeRemote` remote controllers. It avoids opening multiple Chrome instances as it can be very resource consuming.

The workflow is as simple as:
- `Chrome` creates a Selenium Chrome Driver instance and saves session data on a text file.
- `ChromeRemote` uses this session data to create a Selenium Remote instance and control the same browser driver.
## Install
Just install from pip
```bash
pip install ChromePy
```
## Usage
To start a Chrome instance
```python
from chromepy.chrome import Chrome
chrome = Chrome.instance
chrome.get('https://google.com')
print('Chrome running at ', chrome.current_url)
print(chrome.command_executor._url, chrome.session_id)
input('Press any key to quit chrome...')
chrome.quit()
```
To start Remote instances. Remember not to call `remote.quit()` as it will kill the chrome instance as well.
```python
from chromepy.remote import ChromeRemote
remote1 = ChromeRemote()
print('remote1 url', remote1.current_url)
remote1.get('https://google.com')
remote2 = ChromeRemote()
print('remote2 url', remote2.current_url)
```
This examples can be found in the `examples` directory.
## Changelog
- 0.0.5 - Basic Chrome and ChromeRemote
نحوه نصب
نصب پکیج whl ChromePy-0.0.5:
pip install ChromePy-0.0.5.whl
نصب پکیج tar.gz ChromePy-0.0.5:
pip install ChromePy-0.0.5.tar.gz