• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
PythonForBeginners.com

PythonForBeginners.com

Learn By Example

  • Home
  • Learn Python
    • Python Tutorial
  • Categories
    • Basics
    • Lists
    • Dictionary
    • Code Snippets
    • Comments
    • Modules
    • API
    • Beautiful Soup
    • Cheatsheet
    • Games
    • Loops
  • Python Courses
    • Python 3 For Beginners
You are here: Home / Code Snippets / Command Line speedtest.net via tespeed

Command Line speedtest.net via tespeed

Author: PFB Staff Writer
Last Updated: August 28, 2020

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

Related

Recommended Python Training

Course: Python 3 For Beginners

Over 15 hours of video content with guided instruction for beginners. Learn how to create real world applications and master the basics.

Enroll Now

Filed Under: Code Snippets Author: PFB Staff Writer

More Python Topics

API Argv Basics Beautiful Soup Cheatsheet Code Code Snippets Command Line Comments Concatenation crawler Data Structures Data Types deque Development Dictionary Dictionary Data Structure In Python Error Handling Exceptions Filehandling Files Functions Games GUI Json Lists Loops Mechanzie Modules Modules In Python Mysql OS pip Pyspark Python Python On The Web Python Strings Queue Requests Scraping Scripts Split Strings System & OS urllib2

Primary Sidebar

Menu

  • Basics
  • Cheatsheet
  • Code Snippets
  • Development
  • Dictionary
  • Error Handling
  • Lists
  • Loops
  • Modules
  • Scripts
  • Strings
  • System & OS
  • Web

Get Our Free Guide To Learning Python

Most Popular Content

  • Reading and Writing Files in Python
  • Python Dictionary โ€“ How To Create Dictionaries In Python
  • How to use Split in Python
  • Python String Concatenation and Formatting
  • List Comprehension in Python
  • How to Use sys.argv in Python?
  • How to use comments in Python
  • Try and Except in Python

Recent Posts

  • Count Rows With Null Values in PySpark
  • PySpark OrderBy One or Multiple Columns
  • Select Rows with Null values in PySpark
  • PySpark Count Distinct Values in One or Multiple Columns
  • PySpark Filter Rows in a DataFrame by Condition

Copyright © 2012–2025 ยท PythonForBeginners.com

  • Home
  • Contact Us
  • Privacy Policy
  • Write For Us