This commit is contained in:
本间白猫 2024-09-03 16:02:50 +08:00
parent 2bbdff29b5
commit ad3a0b6d7f
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ def newip():
url = f""
response = requests.get(url)
response.raise_for_status()
newip = "socks5://"+response.text.split("\n\r")[0]
newip = "socks5://"+response.text.split("\r\n")[0]
print("新的代理IP为:"+newip)
return newip

View File

@ -5,7 +5,7 @@ def newip():
url = f""
response = requests.get(url)
response.raise_for_status()
newip = "socks5://"+response.text.split("\n\r")[0]
newip = "socks5://"+response.text.split("\r\n")[0]
print("The new proxy IP is:"+newip)
return newip