python: Speedtest-cli Example

Speedtest-cli Example

speedtest-cli -h

Output:

usage: speedtest-cli [-h] [--no-download] [--no-upload] [--single] [--bytes]
                     [--share] [--simple] [--csv]
                     [--csv-delimiter CSV_DELIMITER] [--csv-header] [--json]
                     [--list] [--server SERVER] [--exclude EXCLUDE]
                     [--mini MINI] [--source SOURCE] [--timeout TIMEOUT]
                     [--secure] [--no-pre-allocate] [--version]

Command line interface for testing internet bandwidth using speedtest.net.

 

speedtest-cli

output:

Retrieving speedtest.net configuration...
Testing from xxx Telecom (160.177.45.165)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Meswifi (Barcelona) [1612.05 km]: 58.288 ms
Testing download speed................................................................................
Download: 3.77 Mbit/s
Testing upload speed......................................................................................................
Upload: 0.35 Mbit/s

 

speedtest-cli --share

Output:

Retrieving speedtest.net configuration...
Testing from xxx Telecom (160.177.45.165)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Meswifi (Barcelona) [1612.05 km]: 55.717 ms
Testing download speed................................................................................
Download: 3.77 Mbit/s
Testing upload speed......................................................................................................
Upload: 0.35 Mbit/s
Share results: http://www.speedtest.net/result/12367237676.png

Share results: