qingxu99 commited on
Commit
2a6b17e
1 Parent(s): 98f37e9

代理位置

Browse files
Files changed (1) hide show
  1. check_proxy.py +1 -1
check_proxy.py CHANGED
@@ -9,8 +9,8 @@ def check_proxy(proxies):
9
  try:
10
  response = requests.get("https://ipapi.co/json/", proxies=proxies, timeout=4)
11
  data = response.json()
 
12
  country = data['country_name']
13
- # city = data['city']
14
  result = f"代理配置 {proxies_https}, 代理所在地:{country}"
15
  print(result)
16
  return result
 
9
  try:
10
  response = requests.get("https://ipapi.co/json/", proxies=proxies, timeout=4)
11
  data = response.json()
12
+ print(f'查询代理的地理位置,返回的结果是{data}')
13
  country = data['country_name']
 
14
  result = f"代理配置 {proxies_https}, 代理所在地:{country}"
15
  print(result)
16
  return result