import subprocess
host = "yahoo.com"
ping = subprocess.Popen(
["ping", "-c", "3", host],
stdout = subprocess.PIPE,
stderr = subprocess.PIPE
)
out, error = ping.communicate()
print out
So far I have this for a ping test to a server
basically:
Take a look at this,
Everytime I look want to look up prices of products, i send a HTTP GET request with the product details to f3's API. I am trying to determine how long it takes to retrieve the product price information after receiving my call.