Guest User

Untitled

a guest
Jan 16th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. import os
  2. import time
  3. import subprocess
  4.  
  5.  
  6. URL = raw_input('Please enter the URL you would like the loop to target>')
  7. COUNTER = 1
  8.  
  9. while COUNTER != 5:
  10.   p = subprocess.Popen('chromium %s' % URL, shell=True, stdout=subprocess.PIPE)
  11.   time.sleep(3)
  12.   p.kill()
  13.   COUNTER = COUNTER + 1
Add Comment
Please, Sign In to add comment