giyugg / python_internetspeedtest

0 stars 0 forks source link

Test results does not show up for some reason #2

Closed giyugg closed 1 month ago

giyugg commented 1 month ago

my first version of this was working. i just dont know what happened after i fucked up the code.

v1.0

import speedtest

st = speedtest.Speedtest()
st.get_best_server()
download_speed = st.download()
upload_speed = st.upload()
ping = st.results.ping
download_speed_mbps = download_speed / 1_000_000
upload_speed_mbps = upload_speed / 1_000_000

(f"Ping: {ping} ms")
(f"Download Speed: {download_speed_value:.2f} mbps")
(f"Upload Speed: {upload_speed_value:.2f} mbps")
giyugg commented 1 month ago

FOR SOME FUCKING REASON, PRINT IS MISSING

giyugg commented 1 month ago

oh... it didnt fixed anything lol

Menu:
1. Check available servers
2. Test internet speed
3. Exit

Enter your choice (1/2/3): 2

Do you want to:
1. Automatically select the best server
2. Manually choose a server

Enter your choice (1/2): 1

Menu:
1. Check available servers
2. Test internet speed
3. Exit

Enter your choice (1/2/3):
giyugg commented 1 month ago

SO... it randomly fixed by itself...? wtf

Menu:
1. Check available servers
2. Test internet speed
3. Exit

Enter your choice (1/2/3): 2

Do you want to:
1. Automatically select the best server
2. Manually choose a server

Enter your choice (1/2): 1
Ping: 8.186 ms
Download Speed: 305.24 mbps
Upload Speed: 275.46 mbps

Menu:
1. Check available servers
2. Test internet speed
3. Exit

Enter your choice (1/2/3):