speedtest网络测速

https://github.com/sivel/speedtest-cli/

python speed.py --csv-header
Server ID,Sponsor,Server Name,Timestamp,Distance,Ping,Download,Upload,Share,IP Address
python speed.py --csv
5145,Beijing Unicom,Beijing,2021-01-11T04:49:04.392496Z,1.673922445212346,5.547,628723539.378605,55826659.160589784,,公网IP

python speed.py
Retrieving speedtest.net configuration...
Testing from China Unicom Beijing (公网IP)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Beijing Unicom (Beijing) [1.67 km]: 6.337 ms
Testing download speed................................................................................
Download: 625.72 Mbit/s
Testing upload speed................................................................................................
Upload: 56.08 Mbit/s

python speed.py --json
{
"client": {"rating": "0", "loggedin": "0", "isprating": "3.7", "ispdlavg": "0", "ip": "公网IP", "isp": "China Unicom Beijing", "lon": "经度", "ispulavg": "0", "country": "CN", "lat": "纬度"},
"bytes_sent": 70762496, "download": 596758926.7716337, "timestamp": "2021-01-11T04:56:33.105784Z", "share": null, "bytes_received": 409373932, "ping": 5.535, "upload": 55883940.61967305,
"server": {"latency": 5.535, "name": "Beijing", "url": "http://bj3.unicomtest.com:8080/speedtest/upload.php", "country": "China", "lon": "经度", "cc": "CN", "host": "bj3.unicomtest.com:8080", "sponsor": "Beijing Broadband Network", "lat": "纬度", "id": "5505", "d": 1.673922445212346}
}

标签: none

添加新评论