Jan. 11, 2013

Command Line speedtest.net via tespeed

Overview

While looking around for a command line tool to check my network speed, 
I stumbledupon a post on lowendtalk.com. 

What is it?

It's a command line interface to the speedtest.net servers and can be found here: 
https://github.com/Janhouse/tespeed

What is Speedtest?

Speedtest.net is a connection analysis website where users can test their internet
speed against hundreds of geographically dispersed servers around the world. 

At the end of each test,users are presented with their download (the speed of data
from the server to their computer) and upload (the speed of sending data from 
the user's computer to the server) bandwidth speeds. 

Requirements

This script requires lxml and argparse, so make sure you install that first. 

See this link for a howto. 

In most cases it's enough to run this command from a terminal: pypm install lxml

How does the script work?

See the this url for how to use the program

Running the script

After downloading the requirements I decided to give this program a chance. 

Copy and paste the code from here.

Run the script

Open up your editor, copy and paste the above code and save the file as speed.py

To execute the program, type python and the file name in the shell. 
$python speed.py
Sources
http://www.janhouse.lv/blog/coding/tespeed-terminal-network-speed-test/
https://github.com/Janhouse/tespeed

Recommended Python Training – DataCamp

For Python training, our top recommendation is DataCamp.

Datacamp provides online interactive courses that combine interactive coding challenges with videos from top instructors in the field.

Datacamp has beginner to advanced Python training that programmers of all levels benefit from.

 



Read more about:
Disclosure of Material Connection: Some of the links in the post above are “affiliate links.” This means if you click on the link and purchase the item, I will receive an affiliate commission. Regardless, PythonForBeginners.com only recommend products or services that we try personally and believe will add value to our readers.