import requests, uuid
GATE = "gate.aeonproxy.com:7000"
# Country key only. Tigo shows up under three company names, Claro as Telgua.
BRAND = {"AS14754": "Claro", "AS52362": "Tigo", "AS23243": "Tigo", "AS26617": "Tigo",
"AS52468": "Ufinet", "AS267828": "Cabelnet", "AS22869": "Cablecolor"}
def guatemalan_exit(region=None, tries=8):
for _ in range(tries):
sid = uuid.uuid4().hex[:8]
proxy = f"http://ap_a1b2c3-cc-gt-sid-{sid}-time-3600:PASS@{GATE}"
try:
geo = requests.get("https://ipinfo.io/json", proxies={"http": proxy, "https": proxy}, timeout=20).json()
except requests.RequestException:
continue # timed out: open another session
if geo.get("country") != "GT":
continue # AS14754 and AS52468 also carry other countries
if region is None or geo.get("region") == region:
return proxy, geo # same exit for the next hour
return None, None
proxy, geo = guatemalan_exit("Quetzaltenango")
if proxy:
asn = geo.get("org", "").split(" ")[0]
print(geo["ip"], geo.get("city"), BRAND.get(asn, geo.get("org")))
# Guatemala City and Mixco both come back with the region "Guatemala"
Use "Guatemala" for the capital area or "Alta Verapaz" for Cobán. -time- takes 60 to 21600 seconds, and dropping -sid- gives every request a fresh exit. Network keys are available only on US, UK and German logins.