Reputation: 53
Is there a way i can ping requests of a particular website for a particular no. of times using Python and also is there a way through which i can decide the no . of packets of data to be send in each request ?
Upvotes: 5
Views: 1515
Reputation: 9422
You can use the os module for this.
5 is the count www.examplesite.com is the site
import os
os.system("ping -c 5 www.examplesite.com")
Hope it helped
Upvotes: 2