Guest User

Scrip

a guest
May 23rd, 2013
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.68 KB | None | 0 0
  1. class ThreadClass(threading.Thread):
  2.     def __init__(self, user):
  3.         self.user = user
  4.         threading.Thread.__init__(self)
  5.         time.sleep(0.2)
  6.  
  7.     def run(self):
  8.         action = openurl('http://a-website.com/management.php?action='+USER_ID+'&categ='+self.user+'&do=5', "ok=1").read()
  9.         if "error" in action:
  10.             x = 1
  11.             while x == 1:
  12.                action = openurl('http://a-website.com/management.php?action='+USER_ID+'&categ='+self.user+'&do=5', "ok=1").read()
  13.                if "Please click" in action:
  14.                    x = 0
  15.  
  16.         time.sleep(0.2)
  17.        
  18.  
  19.  
  20. for i in range(len(users)):
  21.   t = ThreadClass(users[i])
  22.   t.start()
Advertisement
Add Comment
Please, Sign In to add comment