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
是一个基于多进程的,在每个进程中是单例模式而已。
Metadata
Release files for adspower-sdk 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| adspower_sdk-0.1.8.tar.gz | 18.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| adspower_sdk-0.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.7 kB
Release files / adspower_sdk-0.1.8.tar.gz
| Download URL | adspower_sdk-0.1.8.tar.gz |
|---|---|
| Size | 18.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7308229192e3488645d2d56dc28921ed34fccba4e8515a2ec863a792b0f6f10d
|
|
BLAKE2b-256 checksum How to use checksums |
d999959710dcdbdc8a8807048af19329e4c83854fc37da10f4c8b13195c69274
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / adspower_sdk-0.1.8-py3-none-any.whl
| Download URL | adspower_sdk-0.1.8-py3-none-any.whl |
|---|---|
| Size | 20.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
04ef1d4236be81a975b80a241b72c9e54d903aba00843a47d507c7615c1eff55
|
|
BLAKE2b-256 checksum How to use checksums |
34019c2712261caee229a682ced6ea3f2682673f0702ab06f9a08e1b1f15a102
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Security for adspower-sdk 0.1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.