speedtest-cli是一個使用python編寫的命令行腳本,通過調用speedtest.net測試上下行的接口來完成速度測試,項目地址:https://github.com/sivel/speedtest-cli。
安裝speedtest-cli
wget -O speedtest-cli https://raw.githubusercontent.com/wn789/Superspeed/master/speedtest.py;chmod +x speedtest-cli;python speedtest-cli
參數:
-h, --help show this help message and exit
--share 分享你的網速,該命令會在speedtest網站上生成網速測試結果的圖片。
--simple Suppress verbose output, only show basic information
--list 根據距離顯示speedtest.net的測試服務器列表。
--server=SERVER 指定列表中id的服務器來做測試。
--mini=MINI URL of the Speedtest Mini server
--source=SOURCE Source ip address to bind to
--version Show the version number and exit
網速測試

