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
mobileproxy.change_ip(proxy_key, user_agent, 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)

# 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:

python -m unittest discover -s tests -p "test_*.py"

Main part of code was generated with DuckDuckGo AI

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.4-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mobileproxy-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 11.3 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 bf9cad3be2f80321d6530a30bd8b36e20bebff49cdf3071c84ec469e6698efb1
MD5 43e003bd8bcb6ce8585c8f1613f05bf6
BLAKE2b-256 47f9c059c68bd27e03f5573f64a0dc6300896d7409f7a324c86b4709a354381b

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