Skip to content

Instantly share code, notes, and snippets.

@gwding
Last active December 14, 2016 16:23
Show Gist options
  • Save gwding/50fdb340f69d522e9bf0 to your computer and use it in GitHub Desktop.
Save gwding/50fdb340f69d522e9bf0 to your computer and use it in GitHub Desktop.
test interenet speed every hour
# 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