This is a utility that records current internet speed and pushes it to a google form. It is mainly for personal use, but could be easily adapted to general purposes. Much of the code was taken from Matt Martz's project speedtest-cli (PyPi)
This project was put on PyPI mainly as a learning exercise.
# From PyPi
pip install speedrecorder
# From GitHub
pip install git+git://github.com/rweyant/speedtest-cli
From the command line
# Get Internet Speed
python examples/run_simple.py
# Get Internet Speed in a continuous loop
python examples/continuous.py
# Wait 10 minutes in between runs
python examples/continuous.py --delay 10
Within a python script
import speedrecorder
speedrecorder.speedtest()
speedrecorder.speedtest(quiet=False)