Skip to main content

A Python SDK for interacting with AdsPower API

Project description

AdsPower SDK

AdsPower SDK is a Python library designed to interact seamlessly with the AdsPower Local API, enabling automated management of browser profiles for tasks such as multi-account operations, web automation, and more.

Features

  • Create, start, stop, and delete browser profiles
  • Check browser status and manage sessions
  • Lease management for multi-process environments
  • Integration with Selenium WebDriver for automation

Installation

Install the package using pip:

pip install adspower-sdk
from adspower.adspowerapi import AdsPowerAPI
from adspower.adspowermanager import AdspowerProfileLeaseManager
import redis

# Initialize API client
api = AdsPowerAPI(base_url='http://local.adspower.net:50325')

# Initialize Redis client
redis_client = redis.Redis(host='localhost', port=6379, db=0)

# Manage browser profile lease
with AdspowerProfileLeaseManager(api, redis_client) as driver:
    # Perform automated tasks using Selenium WebDriver
    driver.get('https://www.example.com')
    # ...

Project Structure

adspower-sdk/
├── adspower/
│   ├── __init__.py
│   ├── adspowerapi.py
│   └── adspowermanager.py
├── tests/
│   └── test_adspower.py
├── setup.py
├── README.md
└── LICENSE

License

This project is licensed under the MIT License. See the LICENSE file for details.

Feel free to customize this template further to suit the specific details and requirements of your project.

ProfilePool

是一个基于多进程的,在每个进程中是单例模式而已。

profile

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

adspower_sdk-0.1.8.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

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

adspower_sdk-0.1.8-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file adspower_sdk-0.1.8.tar.gz.

File metadata

  • Download URL: adspower_sdk-0.1.8.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for adspower_sdk-0.1.8.tar.gz
Algorithm Hash digest
SHA256 7308229192e3488645d2d56dc28921ed34fccba4e8515a2ec863a792b0f6f10d
MD5 c8ff610882321f2b89d6fb111745ae15
BLAKE2b-256 d999959710dcdbdc8a8807048af19329e4c83854fc37da10f4c8b13195c69274

See more details on using hashes here.

File details

Details for the file adspower_sdk-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: adspower_sdk-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 20.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for adspower_sdk-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 04ef1d4236be81a975b80a241b72c9e54d903aba00843a47d507c7615c1eff55
MD5 4f916e7d0053db92a67ee55625be27de
BLAKE2b-256 34019c2712261caee229a682ced6ea3f2682673f0702ab06f9a08e1b1f15a102

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