1>>> import pyspeedtest
2>>> st = pyspeedtest.SpeedTest()
3>>> st.ping()
49.306252002716064
5>>> st.download()
642762976.92544772
7>>> st.upload()
819425388.307319913
9
1#first install the mosule
2pip install speedtest-cli
3#make sure evry thing is good
4speedtest-cli --version
5#speed test
6speedtest-cli
7#in bytes
8speedtest-cli --bytes
9#if you want a picture to shate
10speedtest-cli --share
1$ pyspeedtest
2Using server: speedtest.serv.pt
3Ping: 9 ms
4Download speed: 148.17 Mbps
5Upload speed: 18.56 Mbps
6
1check
2#https://www.icodes.tech/2021/06/code-simple-internet-speed-tester-using.html