mirror of
https://github.com/mahdibland/V2RayAggregator.git
synced 2026-06-24 21:34:12 +08:00
Update output.py
This commit is contained in:
parent
95c3dfea90
commit
bd885a5ef7
@ -24,5 +24,16 @@ def output(list,num):
|
||||
f.close()
|
||||
return content
|
||||
|
||||
def output(list):
|
||||
output_list = []
|
||||
for item in list:
|
||||
info = "ping: " + str(item["ping"]) + " | speed: " + str(item["speed"]) + " | maxspeed: " + str(item["maxspeed"]) + "proxy: " + item['Link']
|
||||
output_list.append(info)
|
||||
with open('./LogInfo.txt', 'w') as f:
|
||||
f.writelines(output_list)
|
||||
print('Write Log Success!')
|
||||
f.close()
|
||||
|
||||
if __name__ == '__main__':
|
||||
output(read_json(out_json),200)
|
||||
output(read_json(out_json))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user