mirror of
https://github.com/vvbbnn00/WARP-Clash-API.git
synced 2026-06-12 21:02:18 +08:00
14 lines
300 B
Python
14 lines
300 B
Python
import requests
|
|
|
|
|
|
def getProxy():
|
|
ret = requests.get("https://getproxy.bzpl.tech/get/").json()
|
|
proxy = {}
|
|
if ret.get('proxy'):
|
|
if ret['https']:
|
|
proxy = {"https": {ret['proxy']}}
|
|
else:
|
|
proxy = {"http": {ret['proxy']}}
|
|
return proxy
|
|
|