Skip to main content

A client of ixBrowser local api

Project description

ixBrowser Local API

ixBrowser local API V2.0 official python version

README.md

Installation

  1. pypi install
pip install ixbrowser-local-api
  1. 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

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

Project details


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.4.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ixbrowser_local_api-1.2.4-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file ixbrowser_local_api-1.2.4.tar.gz.

File metadata

  • Download URL: ixbrowser_local_api-1.2.4.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for ixbrowser_local_api-1.2.4.tar.gz
Algorithm Hash digest
SHA256 c8b656262cf79c8030e0e807d0bbf0ec009cdff635fd0077991c089c6a1780f1
MD5 272ba5325fded3e08ae11630a2deaccd
BLAKE2b-256 1f8dc5030d431015000546c9233f44c806f1b0c4ed6c8d9090bedee3c48ba4d4

See more details on using hashes here.

File details

Details for the file ixbrowser_local_api-1.2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for ixbrowser_local_api-1.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c9c55573d18fea23ce3d224edbd86133c4c6fb4881860c459332c93426fdcbe9
MD5 fea233d032ac608a640c321f6acf0426
BLAKE2b-256 5ff50a90128049dfc5ad330f8f5d423c25c88662ad855e6e7b8c3a240884bb60

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page