Metadata-Version: 2.1
Name: ixbrowser-local-api
Version: 1.0.6
Summary: A client of ixBrowser local api
Home-page: https://github.com/ixspyinc/ixbrowser-local-api-python
Author: IXSPY Team
Author-email: tech@ixspy.com
License: MIT
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests >=2

# 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)
```

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
