ProxyCat/getip.py

13 lines
260 B
Python
Raw Normal View History

2024-08-23 15:29:05 +08:00
import requests
def newip():
print("正在获取新的代理IP")
url = ""
response = requests.get(url)
response.raise_for_status()
2024-08-25 22:26:49 +08:00
newip = "socks5://"+response.text.split("\n\r")[0]
2024-08-23 15:29:05 +08:00
print("新的代理IP为:"+newip)
return newip