Skip to main content

Unofficial python library for working with mobileproxy.space

Project description

mobileproxy - Unofficial python library for working with mobileproxy.space

Site: https://mobileproxy.space

Docs: https://mobileproxy.space/user.html?api

pip install mobileproxy

Example (sync):

from mobileproxy import MobileProxy

api_key = "YOUR_API_KEY"
mobileproxy = MobileProxy(api_key)

print(mobileproxy.get_balance())

Example (async):

import asyncio

from mobileproxy._async import MobileProxy as AsyncMobileProxy


async def main() -> None:
    api_key = "YOUR_API_KEY"
    mobileproxy = AsyncMobileProxy(api_key)
    print(await mobileproxy.get_balance())


if __name__ == "__main__":
    asyncio.run(main())

Methods (sync):

# No Authorization needed (User-Agent is optional)
mobileproxy.change_ip(proxy_key, format="json")

# Common methods
mobileproxy.get_balance()
mobileproxy.get_ipstat()
mobileproxy.get_geo_operator_list(
    equipments_back_list=None,
    operators_back_list=None,
    show_count_null=None,
    proxy_id=None,
)
mobileproxy.get_operators_list(geoid=None)
mobileproxy.get_id_country(only_avaliable=None, accept_language=None)
mobileproxy.get_id_city(accept_language=None)
mobileproxy.get_geo_list(proxy_id=None, geoid=None)
mobileproxy.get_price(id_country, currency=None, accept_language=None)
mobileproxy.see_the_url_from_different_IPs(url, id_country=None)
mobileproxy.get_task_result(tasks_id=None)
mobileproxy.eid_available(eid)
mobileproxy.get_history(start=0, length=50)

# Examples
mobileproxy.get_ip(proxy_id=1, check_spam=True)
mobileproxy.see_the_url_from_different_IPs(
    url="https://mobileproxy.space",
    id_country="1,2,3",
)
task_result = mobileproxy.get_task_result(tasks_id=123)

# Proxy methods
mobileproxy.buy_proxy(
    period=30,
    num=1,
    proxy_id=None,
    geoid=None,
    operator=None,
    coupons_code=None,
    id_country=None,
    id_city=None,
    amount_only=False,
    auto_renewal=1,
)
mobileproxy.edit_proxy(
    proxy_id,
    proxy_reboot_time=None,
    proxy_ipauth=None,
    proxy_auto_renewal=None,
    proxy_auto_change_equipment=None,
    proxy_comment=None,
)
mobileproxy.get_ip(proxy_id, check_spam=None)
mobileproxy.get_black_list(proxy_id)
mobileproxy.add_operator_to_black_list(proxy_id, operator_id)
mobileproxy.remove_operator_from_black_list(proxy_id, operator_id)
mobileproxy.remove_black_list(proxy_id, black_list_id=None, eid=None)
mobileproxy.get_my_proxy(proxy_id)
mobileproxy.change_proxy_login_password(proxy_id, proxy_login, proxy_pass)
mobileproxy.reboot_proxy(proxy_id)
mobileproxy.change_equipment(
    proxy_id,
    operator=None,
    geoid=None,
    add_to_black_list=None,
    id_country=None,
    id_city=None,
    eid=None,
    check_after_change=None,
    check_spam=None,
)

Tests:

pytest -s

Main part of code was generated with DuckDuckGo AI & Cursor

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

mobileproxy-1.0.5-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file mobileproxy-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: mobileproxy-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.5

File hashes

Hashes for mobileproxy-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5b26008bc818987f80fd171feb42f5d81957cf3bf7d2f91d9f4a5572f2883b3d
MD5 597e2f2dc2628aef73ee6ecd23b9f6ea
BLAKE2b-256 a6a90ec2c1c6e75d502a6aef2da7c6088f3eab1ece9a85388910c8797f9d41dc

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