daily pastebin goal
14%
SHARE
TWEET

teste

a guest Oct 12th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import mechanize, sys
  2. from threading import *
  3. from time import sleep
  4.  
  5. link = 'https://docs.google.com/forms/d/1b2Anj9eo0ZEKXuB9IDbutwiP--NANaGf2Z9My2XTeZ0/viewform?usp=send_form'
  6.  
  7. def vota():
  8.     br = mechanize.Browser()
  9.     br.open(link)
  10.     br.select_form(nr=0)
  11.     nome = br.form.controls[0].name
  12.     br[nome] = ['Curso 3']
  13.     br.submit()
  14.     br.close()
  15.  
  16. def main():
  17.     qtd = int(raw_input('Quantos Votos: '))
  18.     c = 0
  19.     for i in range(qtd):
  20.         t = Thread(target=vota, args=[])
  21.         t.start()
  22.  
  23.         c += 1
  24.  
  25.         sys.stdout.flush()
  26.         sys.stdout.write('\r%05d votos...' %(c))
  27.        
  28.  
  29.         while(activeCount() > 30):
  30.             sleep(0.001)
  31.  
  32.     print ""
  33.  
  34. main()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top