137 字
1 分钟
测试上下传网速
Speedtest 是一个旧宠。它用 Python 实现,并打包在 Apt 中,也可用 pip 安装。你可以将它作为命令行工具或在 Python 脚本中使用。
使用以下命令安装:
sudo apt install speedtest-clisudo yum install speedtest-cli或者
sudo pip3 install speedtest-cli然后使用命令 speedtest 运行它:
$ speedtestRetrieving speedtest.net configuration...Testing from CenturyLink (65.128.194.58)...Retrieving speedtest.net server list...Selecting best server based on ping...Hosted by CenturyLink (Cambridge, UK) [20.49 km]: 31.566 msTesting download speed................................................................................Download: 68.62 Mbit/sTesting upload speed......................................................................................................Upload: 10.93 Mbit/s它给你提供了互联网上传和下载的网速。它快速而且可脚本调用,因此你可以定期运行它,并将输出保存到文件或数据库中,以记录一段时间内的网络速度。
分享
如果这篇文章对你有帮助,欢迎分享给更多人!
部分信息可能已经过时
相关文章 智能推荐
1
CentOS 7 内核升级脚本 (kernel-lt-5.4)
学习笔记 set -eo pipefail
2
Alist S3 上传指定目录脚本文档
实用教程 此文档将指导你如何使用修改后的 Python 脚本,其中包括以下功能:
3
emby linux一件脚本
实用教程 echo '-------------------web 端开心-------------------'
4
emby本地破解方法
实用教程 getexpDate 返回值 DateTimeOffset.UtcNow.AddDays(999.0);(RegRecord)
5
halo自动备份到alist-s3脚本
实用教程 - Python 3.x





