From 41a74e7408d74cb86de072d27158a9aca13f95ea Mon Sep 17 00:00:00 2001 From: Franklin-F Date: Sat, 17 May 2025 16:25:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E5=8F=82=E6=95=B0=E4=BB=A5=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E6=96=B0=E7=9A=84=E8=AE=A4=E8=AF=81=E6=96=B9=E5=BC=8F=E5=B9=B6?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=BF=94=E5=9B=9E=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- multi_proxy_refill.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/multi_proxy_refill.py b/multi_proxy_refill.py index c038e02..f6a2ea9 100644 --- a/multi_proxy_refill.py +++ b/multi_proxy_refill.py @@ -42,10 +42,13 @@ def fetch_proxies(region_code, n): 从第三方一次性请求 n 条代理,返回格式化列表 """ params = { - "auth": "ip", + "auth": "pwd", + "format": "1", "n": n, "p": "http", + "gate": "global", "g": region_code, + "r": "0", "type": "json", "sign": SIGN, "accessid": ACCESS_ID, @@ -66,12 +69,12 @@ def fetch_proxies(region_code, n): result = [] for item in arr: - # user = quote(item["username"], safe="") - # pwd = quote(item["password"], safe="") + user = quote(item["username"], safe="") + pwd = quote(item["password"], safe="") ip = item["ip"] port = item["port"] - # result.append(f"http://{user}:{pwd}@{ip}:{port}") - result.append(f"http://{ip}:{port}") + result.append(f"http://{user}:{pwd}@{ip}:{port}") + # result.append(f"http://{ip}:{port}") return result