Skip to content

Instantly share code, notes, and snippets.

@JayantGoel001
Created May 7, 2021 13:46
Show Gist options
  • Save JayantGoel001/ef2130bbe53402b5de390cd6c1d3d636 to your computer and use it in GitHub Desktop.
Save JayantGoel001/ef2130bbe53402b5de390cd6c1d3d636 to your computer and use it in GitHub Desktop.
Check Internet Speed using Python and speedtest-cli
from speedtest import Speedtest
st = Speedtest()
download = st.download()
upload = st.upload()
print("Download Speed is", download)
print("Upload Speed is", upload)
st.get_servers([])
ping = st.results.ping
print("Ping : ", ping)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment