基于 Ookla Speedtest CLI 的多节点测速脚本。
当前版本以 Debian 系统为主,enter.py 方案目前稳定适配 Debian。
shell 方案目前不稳定,推荐优先使用 python 版本。
安装基础环境:
apt update -y && apt install python3-venv vim -y创建虚拟环境:
python3 -m venv /root/superspeed-env && source /root/superspeed-env/bin/activate安装依赖:
pip install --upgrade pip && pip install requests colorama pytz下载并运行:
wget --no-check-certificate -P /root https://raw.githubusercontent.com/tomdiary/superspeed/main/enter.py && chmod +x /root/enter.py && python /root/enter.py修改脚本:
vim /root/enter.py再次运行:
source /root/superspeed-env/bin/activate && python /root/enter.pyspeedtest-result.json:测速结果明细speedtest-error.log:测速失败日志
- 首次运行会自动下载 Ookla Speedtest CLI。
enter.py当前使用脚本内置节点列表进行测速。enter.sh当前不够稳定,不建议作为默认方案使用。- 如果某个节点测速失败,会写入
speedtest-error.log。 - 如需调整测速节点,可直接编辑
/root/enter.py中的check_server_list()。