A client of ixBrowser local api
Project description
ixBrowser Local API
ixBrowser local API V2.0 official python version
README.md
Installation
- pypi install
pip install ixbrowser-local-api
- Source code install
git clone https://github.com/ixspyinc/ixbrowser-local-api-python.git
cd ixbrowser-local-api-python
python setup.py install
Usage
Basic usage
import random
from ixbrowser_local_api import IXBrowserClient
c = IXBrowserClient()
data = c.get_profile_list()
if data is None:
print('Get profile list error:')
print('Error code=', c.code)
print('Error message=', c.message)
else:
item = random.choice(data)
profile_id = item['profile_id']
print('Random choice profile_id=', profile_id)
open_result = c.open_profile(profile_id, cookies_backup=False, load_profile_info_page=False)
if open_result is None:
print('Open profile error:')
print('Error code=', c.code)
print('Error message=', c.message)
else:
print(open_result)
# open_result contains "webdriver" and "debugging_address" fields, which can be used for integration with Selenium or Playwright etc.
Advance use
For detailed usage, please refer to the files in the /examples directory.
API document
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ixbrowser_local_api-1.2.2.tar.gz
(13.0 kB
view details)
Built Distribution
File details
Details for the file ixbrowser_local_api-1.2.2.tar.gz
.
File metadata
- Download URL: ixbrowser_local_api-1.2.2.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
7de1d2091f479e341e5115a8de0a98856e2259268d36744d85380a1f062d410c
|
|
MD5 |
8638d23b64b829d9f8f3d5e7f97b297e
|
|
BLAKE2b-256 |
a017344295e71a15142968483b2f868518ffa276c4fee5914616e3097593a513
|
File details
Details for the file ixbrowser_local_api-1.2.2-py3-none-any.whl
.
File metadata
- Download URL: ixbrowser_local_api-1.2.2-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
b6780aa9070eb0f720bfbc9d9140b65afa9193bbc6269822b61fb8b6bc8b8aef
|
|
MD5 |
d584393dffad08e0105783ad2008b4dd
|
|
BLAKE2b-256 |
05e5d3e549efc9d1ac65e29e4377bd3c5b229cb0fe9a406a910e5117bf3c4a07
|