semvec/pypi-packages huggingface dataset:
ixbrowser-local-api 1.2.2
A client of ixBrowser local api
License: MIT

# ixBrowser Local API

ixBrowser local API V2.0 official python version

## README.md
- en [English](README.md)
- zh_CN [简体中文](README.zh_CN.md)

## Installation

1. pypi install
```BASH
pip install ixbrowser-local-api
```

2. Source code install
```BASH
git clone https://github.com/ixspyinc/ixbrowser-local-api-python.git
cd ixbrowser-local-api-python
python setup.py install
```

## Usage

Basic usage
```python
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

https://www.ixbrowser.com/doc/v2/local-api/en