speedtest-cli icon indicating copy to clipboard operation
speedtest-cli copied to clipboard

add options: --country, --city...

Open ewwink opened this issue 5 years ago • 5 comments

Hi, Please review, I add the following options:

--country
--cc (2-letter country code)
--city
--sponsor
--host

regards

ewwink avatar Jul 30 '18 09:07 ewwink

Hi, trying to add an option for a log file after the testing

Linter6604 avatar Feb 17 '22 15:02 Linter6604

Doesn't seem to work:

# time speedtest-cli --cc fr
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Selecting best server in FR based on latency...
No server available for this criteria

and so on.

divansantana avatar Mar 13 '22 09:03 divansantana

it is because www.speedtest.net/speedtest-servers-static.php only return server list in your country, need to change to

https://www.speedtest.net/api/js/servers?engine=js&search=[SEARCH_CRITERIA]&https_functional=true&limit=10

ewwink avatar Mar 13 '22 10:03 ewwink

the application dont searching nearest server by default, and when i request the list it find distant servers

royalchevas avatar May 15 '22 03:05 royalchevas

it is because www.speedtest.net/speedtest-servers-static.php only return server list in your country, need to change to

https://www.speedtest.net/api/js/servers?engine=js&search=[SEARCH_CRITERIA]&https_functional=true&limit=10

Uh, but where exactly should this be changed @ewwink ?

mnalis avatar Sep 19 '22 11:09 mnalis