Last active
June 7, 2023 13:37
-
-
Save py310/d813887b84fa471c0b270b976839f07a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pip install speedtest-cli | |
import speedtest | |
st = speedtest.Speedtest() | |
download_speed = st.download() | |
print (download_speed / (2 ** 20)) | |
# 840.95 | |
upload_speed = st.upload() | |
print (upload_speed / (2 ** 20)) | |
# 590.24 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment