Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Python script pra tirar o Bozo da Presidência
# coding: utf-8
# Voting on https://davidmirandario.com.br/forabolsonaro/
import requests
import _thread
import time
def request(user_data):
try:
response = requests.post(
url="https://api.evag.io/channels/5793bca0-60fe-496b-81fc-8ff66f4b3363/submit",
data=user_data
)
if response.status_code == 200:
return True
return False
except:
return False
def r(user_data, item):
if request(user_data):
print("Voto nº ", item)
THREADS_LIMIT, SLEEP_TIME = 200, 10
name = str(input('Digite seu nome: '))
city = str(input('Digite sua cidade: '))
uf = str(input('Digite seu UF: ')).upper()
email = str(input('Digite seu e-mail: '))
user_data = {
"name": name,
"city": city,
"uf": uf,
"email": email
}
c = 1
while True:
for i in range(0, THREADS_LIMIT):
_thread.start_new_thread(r, (user_data, c, ))
c += 1
time.sleep(SLEEP_TIME)
@iguilhermeluis

This comment has been minimized.

Copy link

@iguilhermeluis iguilhermeluis commented Jun 11, 2021

Very good! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment