$ pip install speedtest-cli
$ crontab -e
# run speedtest every 10 min
*/10 * * * * (/usr/bin/speedtest-cli --simple --server 3199 | awk -v date="$(date +\%Y-\%m-\%d\ \%H:\%M:\%S)" -v OFS=';' '/Ping:/ { p=$2; } /Download:/ { d=$2; } /Upload:/ { print date, p, d, $2; d="" }' | tee -a /home/user/speedtest_results.csv)
measurements are stores as CSV (using a semicolon as delimiter) with the following format:
date (yyyy-mm-dd hh:mm:ss);ping (ms);down rate (mbit/s);up rate (mbit/s)
Thank you for this quick solution..