Skip to content

jibaoproxyofficial-pixel/jibaoproxy-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jibaoproxy-python

PyPI version Python versions License: MIT Downloads

Official Python SDK for JiBao Proxy — 72M+ residential IPs across 200+ countries, plus datacenter, mobile, and static proxies.

pip install jibaoproxy

Quick start

Get your sub-account ID from member.jibaoproxy.com → Dynamic Residential, then:

import requests
from jibaoproxy import JiBaoProxy

client = JiBaoProxy(username="c83d7fb7-afe7fa00", password="wifi")

# Rotating: new IP every call
for _ in range(3):
    r = requests.get("https://httpbin.org/ip", proxies=client.session())
    print(r.json()["origin"])

Sticky sessions

Re-use the same exit IP across requests (login flows, carts, etc.):

client = JiBaoProxy(username="c83d7fb7-afe7fa00")
proxies = client.sticky()      # holds one session
# ... many requests on the same IP ...
client.rotate()                # force a fresh exit IP

Geo targeting

# hk, us, jp, uk, de, sg, kr, tw, ca, au
client = JiBaoProxy(username="...", area="us")
requests.get("https://httpbin.org/ip", proxies=client.session())

See jibaoproxy.geo.AREAS for the full list.

SOCKS5

client = JiBaoProxy(username="...", protocol="socks5")
# requests needs `requests[socks]` for SOCKS5

API extract (IP-whitelist auth)

If you prefer IP whitelisting over user:pass:

from jibaoproxy import extract_ips

ips = extract_ips(token="YOUR_API_TOKEN", qty=10, area="us", type="wifi")
# ['1.2.3.4:8080', '5.6.7.8:8080', ...]

Async (httpx)

pip install jibaoproxy[async]
import httpx
from jibaoproxy import JiBaoProxy

client = JiBaoProxy(username="...")
async with httpx.AsyncClient(proxies=client.session()["http"]) as http:
    r = await http.get("https://httpbin.org/ip")

Proxy types

password What you get Price
wifi Residential, rotating $10/GB
dat Datacenter, rotating $1/GB
5g Mobile, rotating $15/GB

Static (per-IP, monthly) plans are also available — see jibaoproxy.com.

$5 free on signup

Create an account at jibaoproxy.com — every new user gets $5 of dynamic traffic, no card required.

License

MIT

About

Official Python SDK for JiBao Proxy — rotating residential, datacenter, and mobile proxies with sticky sessions and geo targeting

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages