WebSite Download Time Testing tool

The website download time testing tool is a command line tool which would send a HTTP request to a server and clock the time it takes to download the website. The tool is developed with Python and can be executed on Windows and Linux Platform.

Python Source Code

import urllib,urllib2
import datetime
import time
a=datetime.datetime.now()
info=urllib.urlopen(‘http://192.168.137.1’)
if (info):
b=datetime.datetime.now()
c=b-a
print “The website load time is “, c

The output of the code is shown below.

output

Learn to make custom network tools and scripts with our video courseClick Here