From 2a6b17ed5e50c3d3d47419d22b9e5f2ab0e8640e Mon Sep 17 00:00:00 2001 From: qingxu fu <505030475@qq.com> Date: Wed, 22 Mar 2023 17:45:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=90=86=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- check_proxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_proxy.py b/check_proxy.py index 552f247..374f58d 100644 --- a/check_proxy.py +++ b/check_proxy.py @@ -9,8 +9,8 @@ def check_proxy(proxies): try: response = requests.get("https://ipapi.co/json/", proxies=proxies, timeout=4) data = response.json() + print(f'查询代理的地理位置,返回的结果是{data}') country = data['country_name'] - # city = data['city'] result = f"代理配置 {proxies_https}, 代理所在地:{country}" print(result) return result