Skip to content

Conversation

@PeterLinuxOSS
Copy link

I have made an update to use I have updated the src to use a new URL for fetching active servers.

@PeterLinuxOSS
Copy link
Author

@sivel Check the request

key = 'id'

server[key] = value
server["url"] = f"http://{server['host']}/speedtest/upload.php"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch. Shouldn't the protocol (http/https) depend on the --secure option?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, https would have a negative impact on ping time if used here.

@1265578519
Copy link

我在香港,测速找不到对应的测速节点,这个pr能够修复这个问题吗?
./speedtest.py --list
Retrieving speedtest.net configuration...
1345) Fort Hays State Univ (Hays, KS, United States) [12371.99 km]
30043) Cunningham Fiber/North Central Kansas Community Network (Beloit, KS, United States) [12373.75 km]
7407) Cunningham Fiber/North Central Kansas Community Network (Glen Elder, KS, United States) [12373.75 km]
3753) Wamego Telephone Company (Wamego, KS, United States) [12479.07 km]
45720) Mutual Telephone Company (McPherson, KS, United States) [12497.16 km]
16623) Cox - Wichita (Wichita, KS, United States) [12576.38 km]
54464) Ideatek Telcom (Wichita, KS, United States) [12576.38 km]
61172) USA Connections (Wellington, KS, United States) [12615.13 km]
32149) Wake Wireless (Bartlesville, OK, United States) [12728.48 km]
20013) OneNet (Tulsa, OK, United States) [12784.63 km]

@PeterLinuxOSS
Copy link
Author

我在香港,测速找不到对应的测速节点,这个pr能够修复这个问题吗?
./speedtest.py --list
Retrieving speedtest.net configuration...
1345) Fort Hays State Univ (Hays, KS, United States) [12371.99 km]
30043) Cunningham Fiber/North Central Kansas Community Network (Beloit, KS, United States) [12373.75 km]
7407) Cunningham Fiber/North Central Kansas Community Network (Glen Elder, KS, United States) [12373.75 km]
3753) Wamego Telephone Company (Wamego, KS, United States) [12479.07 km]
45720) Mutual Telephone Company (McPherson, KS, United States) [12497.16 km]
16623) Cox - Wichita (Wichita, KS, United States) [12576.38 km]
54464) Ideatek Telcom (Wichita, KS, United States) [12576.38 km]
61172) USA Connections (Wellington, KS, United States) [12615.13 km]
32149) Wake Wireless (Bartlesville, OK, United States) [12728.48 km]
20013) OneNet (Tulsa, OK, United States) [12784.63 km]

Yes, it could help.

@1265578519
Copy link

1265578519 commented Feb 13, 2025

Yes, it could help.

@1ras 根据这位朋友提供的帮助,增加 --secure 选项,在现有的speedtest.py代码里解决了这个问题,现在可以正常输出香港的测速节点

[root@admin ~]# ./speedtest.py --list
Retrieving speedtest.net configuration...
 1345) Fort Hays State Univ (Hays, KS, United States) [12371.99 km]
30043) Cunningham Fiber/North Central Kansas Community Network (Beloit, KS, United States) [12373.75 km]
 7407) Cunningham Fiber/North Central Kansas Community Network (Glen Elder, KS, United States) [12373.75 km]
 3753) Wamego Telephone Company (Wamego, KS, United States) [12479.07 km]
45720) Mutual Telephone Company (McPherson, KS, United States) [12497.16 km]
16623) Cox - Wichita (Wichita, KS, United States) [12576.38 km]
54464) Ideatek Telcom (Wichita, KS, United States) [12576.38 km]
61172) USA Connections (Wellington, KS, United States) [12615.13 km]
32149) Wake Wireless (Bartlesville, OK, United States) [12728.48 km]
20013) OneNet (Tulsa, OK, United States) [12784.63 km]
[root@admin ~]# ./speedtest.py --list --secure
Retrieving speedtest.net configuration...
43356) 1010 (Hong Kong, Hong Kong) [0.92 km]
37695) China Unicom Global Ltd (Hong Kong, Hong Kong) [1.82 km]
63143) Netvigator (Hong Kong, Hong Kong) [2.77 km]
 1536) STC (Hong Kong, Hong Kong) [3.92 km]
14333) Sakura Clouds LLC (Hong Kong, Hong Kong) [3.92 km]
44745) Misaka Network, Inc. (Hong Kong, Hong Kong) [3.92 km]
57779) ラタトスク (Hong Kong, Hong Kong) [3.92 km]
60178) Sun Mobile (Hong Kong, Hong Kong) [3.92 km]
62193) CTCSCI TECH LTD (Hong Kong, Hong Kong) [3.92 km]
32155) CMHK Mobile Service (Hong Kong, Hong Kong) [3.96 km]

@1ras
Copy link

1ras commented Feb 13, 2025

I use it now since two weeks and this patch works great!

Please ignore my comment above regarding the http:// address for the server URL. I've tested it and when https is used, the ping times increase dramatically due to the TLS negotiation. That's most likely not what's expected, so leaving it as http even with the secure option enabled should be fine.

@1ras
Copy link

1ras commented Feb 13, 2025

@1265578519 I am not sure if I fully understand your comment, but this pull request and the --secure option are not the same thing. With the original version and --secure there are still many missing servers. If your closest server (Hong Kong) shows up with the --secure option, then it's more of a coincidence.

@Gu1nness
Copy link

Gu1nness commented Apr 1, 2025

Should this be merged ? It would be great to be able to use it again !

@joente
Copy link

joente commented Apr 4, 2025

Why is this PR still open?

@PeterLinuxOSS
Copy link
Author

Why is this PR still open?

Its ready to merge...

@benintech
Copy link

Is this software still maintained ? The latest update is 4 years old...

I switched to Ookla's CLI tool (https://www.speedtest.net/apps/cli). Caveat : they collect personal infos, like IP addresses.

@PeterLinuxOSS
Copy link
Author

Is this software still maintained ? The latest update is 4 years old...

It is not maintained by the creator...

@benintech
Copy link

@PeterLinuxOSS : I just installed your fork (https://github.com/PeterLinuxOSS/speedtest-cli). It works fine, thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants