xxf098 / LiteSpeedTest

A simple tool for batch test ss/ssr/v2ray/trojan servers.
GNU General Public License v3.0
344 stars 74 forks source link

命令行模式能否输出可用节点到文件 #35

Closed 4ft35t closed 1 year ago

4ft35t commented 1 year ago

--test 运行时,已经输出测速结果到 out.png

能否同时把可用节点url输入到 alive.txt

xxf098 commented 1 year ago

output as json then use jq to get all the links

jq -r '.nodes[] | select(.ping!="0") |.link'  output.json
4ft35t commented 1 year ago

默认只输出 out.png, 如果需要生成 josn,按以下步骤操作

  1. 下载 https://raw.githubusercontent.com/xxf098/LiteSpeedTest/master/config.json
  2. generatePicMode 改成 3
  3. ./lite --config config.json --test https://raw.githubusercontent.com/freefq/free/master/v2 即可生成 out.json