GugunTheBloodEdge

ping

Sep 25th, 2015
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. import urllib.request
  2. import time
  3.  
  4.  
  5. def ping():
  6.     data = urllib.request.urlopen("isikan domain kamu contoh domain http://python-deathgun.rhcloud.com/").read()
  7.     return data
  8.  
  9. while True:
  10.     ping()
  11.     print("ping")
  12.     time.sleep(600)
Advertisement
Add Comment
Please, Sign In to add comment