mirror of
https://github.com/honmashironeko/ProxyCat.git
synced 2025-06-20 18:01:01 +00:00
13 lines
261 B
Python
13 lines
261 B
Python
import requests
|
|
|
|
def newip():
|
|
print("正在获取新的代理IP")
|
|
url = f""
|
|
response = requests.get(url)
|
|
response.raise_for_status()
|
|
newip = "socks5://"+response.text.split("\r\n")[0]
|
|
print("新的代理IP为:"+newip)
|
|
return newip
|
|
|
|
|