Skip to main content

A proxy SDK for managing rotating residential proxies in Vietnam

Project description

ProxySDK

ProxySDK là một giải pháp proxy xoay dân cư cho các dự án tại Việt Nam, đặc biệt phù hợp cho MMO và Airdrop.

Nội Dung

Giới thiệu

ProxySDK cung cấp các tính năng chính như quản lý proxy, xoay IP theo tỉnh, và tích hợp dễ dàng vào các dự án hiện có.

Cài đặt

Cài đặt với pip:

pip install residential-proxy-sdk

Sử dụng

Hướng dẫn cách sử dụng dự án. Dưới đây là một ví dụ mã nguồn:

from residential_proxy_sdk import ProxySDK

sdk = ProxySDK("https://vinproxy.net", "YOUR_API_KEY")
provinces = sdk.get_provinces()
print(provinces)

API

ProxySDK cung cấp các API sau:

Lấy danh sách tỉnh

  • Phương thức: get_provinces(search_text: str = None)
  • Mô tả: Trả về danh sách các tỉnh thành có sẵn proxy.
  • Tham số:
    • search_text (tùy chọn): Chuỗi tìm kiếm để lọc danh sách tỉnh.

Lấy IP mới

  • Phương thức: get_new_ip(proxy_key: str, province_id: int = None)
  • Mô tả: Lấy một IP mới từ proxy.
  • Tham số:
    • proxy_key: Khóa proxy.
    • province_id (tùy chọn): ID của tỉnh cần lấy IP.

Lấy IP hiện tại

  • Phương thức: get_current_ip(proxy_key: str)
  • Mô tả: Lấy thông tin IP hiện tại của proxy.
  • Tham số:
    • proxy_key: Khóa proxy.

Xóa IP cũ

  • Phương thức: remove_old_ip(proxy_key: str)
  • Mô tả: Xóa IP cũ của proxy.
  • Tham số:
    • proxy_key: Khóa proxy.

Lấy danh sách khóa

  • Phương thức: get_key_list()
  • Mô tả: Lấy danh sách các khóa proxy của người dùng.

Lấy chi tiết khóa

  • Phương thức: get_key_detail(proxy_key: str)
  • Mô tả: Lấy thông tin chi tiết của một khóa proxy.
  • Tham số:
    • proxy_key: Khóa proxy cần lấy thông tin.

Mua khóa mới

  • Phương thức: buy_new_key(buy_key_dto: any)
  • Mô tả: Thực hiện giao dịch mua khóa proxy mới.
  • Tham số:
    • buy_key_dto: Đối tượng chứa thông tin mua khóa mới.

Gia hạn khóa

  • Phương thức: renew_key(renew_key_dto: any)
  • Mô tả: Gia hạn một khóa proxy hiện có.
  • Tham số:
    • renewKeyDto: Đối tượng chứa thông tin gia hạn khóa.

Xóa khóa

  • Phương thức: remove_key(proxy_key: str)
  • Mô tả: Xóa một khóa proxy.
  • Tham số:
    • proxy_key: Khóa proxy cần xóa.

Lấy thông tin người dùng

  • Phương thức: get_user_info()
  • Mô tả: Lấy thông tin của người dùng hiện tại.

Đóng góp

Chúng tôi rất hoan nghênh mọi đóng góp cho ProxySDK. Nếu bạn muốn đóng góp, vui lòng làm theo các bước sau:

  1. Fork repository
  2. Tạo branch mới (git checkout -b feature/AmazingFeature)
  3. Commit các thay đổi (git commit -m 'Add some AmazingFeature')
  4. Push lên branch (git push origin feature/AmazingFeature)
  5. Mở Pull Request

Giấy phép

Dự án này được phân phối dưới giấy phép MIT. Xem file LICENSE để biết thêm chi tiết.

residential-proxy-sdk

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

residential-proxy-sdk-0.1.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

residential_proxy_sdk-0.1.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file residential-proxy-sdk-0.1.2.tar.gz.

File metadata

  • Download URL: residential-proxy-sdk-0.1.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.6

File hashes

Hashes for residential-proxy-sdk-0.1.2.tar.gz
Algorithm Hash digest
SHA256 658776dda497246570fc6b3ad742ca7d1ca06ac32bc95e721d76344c53da9dd9
MD5 9ac5aafe05074ba86767bfc64b3fa73c
BLAKE2b-256 832475844cdd4b04918b2ef37baeda3e8712c34a07ff4c7eed4d187829fec579

See more details on using hashes here.

File details

Details for the file residential_proxy_sdk-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for residential_proxy_sdk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5416c4f99581d668b476077c44440dede971f8700a8591d8aebf2fb0b51d532c
MD5 717ad9a577d059f7e217528f4e5cc031
BLAKE2b-256 9fe5bdcfb7f1e7c784956c42e621461a2f23784c6cfaa0ef56d87181cfe08029

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