Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import mechanize, sys
- from threading import *
- from time import sleep
- link = 'https://docs.google.com/forms/d/1b2Anj9eo0ZEKXuB9IDbutwiP--NANaGf2Z9My2XTeZ0/viewform?usp=send_form'
- def vota():
- br = mechanize.Browser()
- br.open(link)
- br.select_form(nr=0)
- nome = br.form.controls[0].name
- br[nome] = ['Curso 3']
- br.submit()
- br.close()
- def main():
- qtd = int(raw_input('Quantos Votos: '))
- c = 0
- for i in range(qtd):
- t = Thread(target=vota, args=[])
- t.start()
- c += 1
- sys.stdout.flush()
- sys.stdout.write('\r%05d votos...' %(c))
- while(activeCount() > 30):
- sleep(0.001)
- print ""
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement