Last active
December 14, 2016 16:23
-
-
Save gwding/50fdb340f69d522e9bf0 to your computer and use it in GitHub Desktop.
test interenet speed every hour
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
# for testing interenet speed every hour | |
import time | |
from speedtest_cli import speedtest | |
data_list = [] | |
while True: | |
dlspeed, ulspeed = speedtest() | |
data_list.append((dlspeed, ulspeed, time.strftime("%H:%M:%S"))) | |
print data_list[-1] | |
time.sleep(3600) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment