UNOFFICIAL Python bindings for IPRoyal Pawns Dashboard API
Project description
IPRoyal Pawns API
UNOFFICIAL Python bindings for IPRoyal Pawns Dashboard API
Installation
pip install pyIPRoyalPawns
Usage
Login with username and password:
from pyIPRoyalPawns import IPRoyalPawns
# Your IPRoyalPawns (IPR) login username/email and password
USERNAME = ""
PASSWORD = ""
# Initialise the HoneyGain object
user = IPRoyalPawns()
# Optionally, when instantiating you can pass in the following attributes to the IPRoyalPawns class:
Attribute | Description | Default Value |
---|---|---|
API_BASE_URL | The API BASE URL | https://pawns.iproyal.com |
# Call the login method
user.login(USERNAME, PASSWORD)
Add proxies for future requests:
from pyIPRoyalPawns import IPRoyalPawns
# With authentication
user.set_proxy("ip:port:username:password")
# Without authentication
user.set_proxy("ip:port")
Functions
-
Get user dashboard
user.dashboard()
-
Remove a proxy
# Removes a proxy for future requests. user.remove_proxy()
-
Get all the devices
# Get all the devices shown on dashboard user.devices()
Exceptions
- The following exceptions are defined.
Exception Reason NotLoggedInError
Raised when you try to access protected routes (dashboard, payout history, etc). HTMLWebpageParserError
Raised when the webpage parser cannot parse the response of the dashboard request (typically when you're rate limited or a broken connection)
Liked my work?
Consider donating:
-
BTC: bc1q5y8z0cpgvafedvmwcfjn682skpr67e2du00acy
-
LTC: LcquWHprnVRHY86u5rNDW6U8VD3WVbZV4h
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyIPRoyalPawns-0.2.2.tar.gz
(5.3 kB
view hashes)
Built Distribution
Close
Hashes for pyIPRoyalPawns-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e431ac3bb7de8db3cd3fd00392ef65b52d0c83414d3d609f56d4aff0f0533318 |
|
MD5 | cfd5b4c8085ff0ccbe4555127025c095 |
|
BLAKE2b-256 | e5d21630790ab53b80206c5b73586e51fa639cef5e2b48b128368cb7649e87f5 |