Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Avi 1

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 8

from selenium import webdriver

from selenium.webdriver.chrome import service


from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
from time import sleep

def verificar_estrategia(lista):
for numero in lista[:4]:
if numero >= 200000000000000000000000000000:
return False
return True

webdriver_service = service.Service(ChromeDriverManager().install())
webdriver_service.start()
options = webdriver.ChromeOptions()
# options.add_argument('--headless')
options.add_argument('--disable-logging')
options.add_argument("--no-sandbox")
options.add_argument("--disable-dev-shm-usage")
options.add_argument("--start-maximized")
options.add_argument('--disable-extensions')
options.add_argument('--disable-popup-blocking')
options.add_argument('--disable-gpu')
options.add_argument('--disable-infobars')
options.add_argument('--disable-blink-features=AutomationControlled')
options.add_experimental_option('w3c', True)

driver = webdriver.Remote(webdriver_service.service_url, options=options)


driver.maximize_window()

driver.get('https://estrelabet.com/')

print('Atualizando site...')
driver.refresh()

print('Aguardando botão para aceitar cookies...')

WebDriverWait(driver, 25).until(
EC.presence_of_element_located((By.XPATH,'/html/body/app-root/div[2]/app-
cookie-policy/div/div/div/span/button'))
)

import time
time.sleep(7)

driver.find_element(By.XPATH,'/html/body/app-root/div[2]/app-cookie-policy/div/
div/div/span/button').click()
time.sleep(1)

print('Botão clicado')
print('Iniciando login...')
driver.find_element(By.XPATH,'/html/body/app-root/div[1]/app-header/header/div/
div[4]/button[3]').click()
time.sleep(1)
driver.find_element(By.XPATH,'//*[@id="email"]').send_keys('crisisa9')
print('Usuário')
time.sleep(1)
driver.find_element(By.XPATH,'//*[@id="txtPassword"]').send_keys('Hbet#222')
print('Senha')
time.sleep(1)
driver.find_element(By.XPATH,'//*[@id="loginButton"]').click()
print('Botão de acesso clicado')
time.sleep(1)

print('Acessando aviator...')
driver.get('https://estrelabet.com/pb/gameplay/aviator/demo-game')
print('Aguardando Frame...')

WebDriverWait(driver, 30).until(
EC.presence_of_element_located((By.ID,'gamePlayIframe'))
)
time.sleep(5)

iframe = driver.find_element(By.ID,'gamePlayIframe')
elemento_atualizado = driver.find_element(By.ID,'gamePlayIframe')
driver.switch_to.frame(iframe)

time.sleep(5)

while True:
resultados = [float(n) for n in driver.find_element(
By.CLASS_NAME, 'result-history').text.replace('x', '').split('\n')][:10]

condicao1 = resultados[0] <= 2


condicao2 = resultados[1] <= 2
condicao3 = resultados[2] >= 2

if condicao1 and condicao2 and condicao3:


print(f'Estrategia OK -> {resultados[:3]}')
time.sleep(2)
driver.find_element(By.XPATH,
'/html/body/app-root/app-game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-
controls/div/app-bet-control/div/div[2]/div[2]/button/span').click()
print("aposta inicial realizada")
break
else:
while True:
resultadosk = [float(n) for n in driver.find_element(
By.CLASS_NAME, 'result-history').text.replace('x', '').split('\n')]
[:10]

condicao4 = resultadosk[0] <= 2


condicao5 = resultadosk[1] <= 2
condicao6 = resultadosk[2] <= 2
condicao7 = resultadosk[3] >= 2

condicao8 = resultadosk[0] >= 2


condicao9 = resultadosk[1] <= 2
condicao10 = resultadosk[2] <= 2
condicao11 = resultadosk[3] >= 2

if condicao4 and condicao5 and condicao6 and condicao7:


print(f'PRIMEIRO RED -> {resultadosk[:4]}')
time.sleep(4)
driver.find_element(By.XPATH,
'/html/body/app-root/app-game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-
controls/div/app-bet-control[2]/div/div[2]/div[1]/div/button[1]/span').click()
driver.find_element(By.XPATH,
'/html/body/app-root/app-game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-
controls/div/app-bet-control[2]/div/div[2]/div[1]/div/button[1]/span').click()
print("Valor 2 Reais")
driver.find_element(By.XPATH,
'/html/body/app-root/app-game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-
controls/div/app-bet-control/div/div[2]/div[2]/button/span').click()
print("aposta segundaria realizada")
time.sleep(2)
break
elif condicao8 and condicao9 and condicao10 and condicao11:
print(f'GREEN 1 -> {resultadosk[:1]}')
time.sleep(5)
continue

while True:
resultadosj = [float(n) for n in driver.find_element(
By.CLASS_NAME, 'result-history').text.replace('x', '').split('\
n')][:10]

condicao12 = resultadosj[0] <= 2


condicao13 = resultadosj[1] <= 2
condicao14 = resultadosj[2] <= 2
condicao15 = resultadosj[3] <= 2
condicao16 = resultadosj[4] >= 2

condicao17 = resultadosj[0] >= 2


condicao18 = resultadosj[1] <= 2
condicao19 = resultadosj[2] <= 2
condicao20 = resultadosj[3] <= 2
condicao21 = resultadosj[4] >= 2

if condicao12 and condicao13 and condicao14 and condicao15 and


condicao16:
print(f'SEGUNDO RED -> {resultadosj[:5]}')
time.sleep(2)
driver.find_element(By.XPATH,
'/html/body/app-root/app-game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-
controls/div/app-bet-control[2]/div/div[2]/div[1]/div/button[1]/span').click()
driver.find_element(By.XPATH,
'/html/body/app-root/app-game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-
controls/div/app-bet-control[2]/div/div[2]/div[1]/div/button[1]/span').click()
driver.find_element(By.XPATH,
'/html/body/app-root/app-game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-
controls/div/app-bet-control[2]/div/div[2]/div[1]/div/button[1]/span').click()
driver.find_element(By.XPATH,
'/html/body/app-root/app-game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-
controls/div/app-bet-control[2]/div/div[2]/div[1]/div/button[1]/span').click()
print("Valor 4 Reais")
driver.find_element(By.XPATH,
'/html/body/app-root/app-game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-
controls/div/app-bet-control/div/div[2]/div[2]/button/span').click()
print("aposta terciaria realizada")
break
elif condicao17 and condicao18 and condicao19 and condicao20 and
condicao21:
print(f'GREEN 2 tentativa-> {resultadosj[:1]}')
time.sleep(2)
driver.find_element(By.XPATH,
'/html/body/app-root/app-game/div/div[1]/div[2]/div/div/2/div[3]/app-bet-controls/
div/app-bet-control[2]/div/div[2]/div[1]/div/button[2]/span').click()
driver.find_element(By.XPATH,
'/html/body/app-root/app-game/div/div[1]/div[2]/div/div/2/div[3]/app-bet-controls/
div/app-bet-control[2]/div/div[2]/div[1]/div/button[2]/span').click()
print("Valor retornado a 1 Real")
driver.find_element(By.XPATH,
'/html/body/app-root/app-game/div/div[1]/div[2]/div/div/2/div[3]/app-bet-controls/
div/app-bet-control[2]/div/div[2]/div[1]/div/button[1]/span').click()
time.sleep(10)
break

while True:
resultadosh = [float(n) for n in driver.find_element(
By.CLASS_NAME, 'result-history').text.replace('x',
'').split('\n')][:10]

condicao22 = resultadosh[0] <= 2


condicao23 = resultadosh[1] <= 2
condicao24 = resultadosh[2] <= 2
condicao25 = resultadosh[3] <= 2
condicao26 = resultadosh[4] <= 2
condicao27 = resultadosh[5] >= 2

condicao28 = resultadosh[0] >= 2


condicao29 = resultadosh[1] <= 2
condicao30 = resultadosh[2] <= 2
condicao31 = resultadosh[3] <= 2
condicao32 = resultadosh[4] <= 2
condicao33 = resultadosh[5] >= 2

if condicao22 and condicao23 and condicao24 and condicao25 and


condicao26 and condicao27:
time.sleep(2)
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-control[2]/
div/div[2]/div[1]/div/button[1]/span').click()
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-control[2]/
div/div[2]/div[1]/div/button[1]/span').click()
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-control[2]/
div/div[2]/div[1]/div/button[1]/span').click()
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-control[2]/
div/div[2]/div[1]/div/button[1]/span').click()
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-control[2]/
div/div[2]/div[1]/div/button[1]/span').click()
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-control[2]/
div/div[2]/div[1]/div/button[1]/span').click()
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-control[2]/
div/div[2]/div[1]/div/button[1]/span').click()
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-control[2]/
div/div[2]/div[1]/div/button[1]/span').click()
print("Valor 8 Reais")
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-control/div/
div[2]/div[2]/button/span').click()
print("aposta quartenaria realizada")
break

elif condicao28 and condicao29 and condicao30 and condicao31


and condicao32 and condicao33:
print(f'GREEN 3 tentativa-> {resultadosj[:1]}')
time.sleep(2)
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div/2/div[3]/app-bet-controls/div/app-bet-control[2]/
div/div[2]/div[1]/div/button[2]/span').click()
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div/2/div[3]/app-bet-controls/div/app-bet-control[2]/
div/div[2]/div[1]/div/button[2]/span').click()
print("Valor retornado a 1 Real")
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div/2/div[3]/app-bet-controls/div/app-bet-control[2]/
div/div[2]/div[1]/div/button[1]/span').click()
time.sleep(10)
continue

while True:
resultadosh = [float(n) for n in driver.find_element(
By.CLASS_NAME, 'result-history').text.replace('x',
'').split('\n')][:10]

condicao34 = resultadosh[0] <= 2


condicao35 = resultadosh[1] <= 2
condicao36 = resultadosh[2] <= 2
condicao37 = resultadosh[3] <= 2
condicao38 = resultadosh[4] <= 2
condicao39 = resultadosh[5] <= 2
condicao40 = resultadosh[6] >= 2

condicao41 = resultadosh[0] >= 2


condicao42 = resultadosh[1] <= 2
condicao43 = resultadosh[2] <= 2
condicao44 = resultadosh[3] <= 2
condicao45 = resultadosh[4] <= 2
condicao46 = resultadosh[5] <= 2
condicao47 = resultadosh[6] >= 2

if condicao34 and condicao35 and condicao36 and condicao37


and condicao38 and condicao39 and condicao40:
time.sleep(2)
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-control[2]/
div/div[2]/div[1]/div/button[1]/span').click()
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-control[2]/
div/div[2]/div[1]/div/button[1]/span').click()
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-control[2]/
div/div[2]/div[1]/div/button[1]/span').click()
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-control[2]/
div/div[2]/div[1]/div/button[1]/span').click()
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-control[2]/
div/div[2]/div[1]/div/button[1]/span').click()
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-control[2]/
div/div[2]/div[1]/div/button[1]/span').click()
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-control[2]/
div/div[2]/div[1]/div/button[1]/span').click()
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-control[2]/
div/div[2]/div[1]/div/button[1]/span').click()
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-control[2]/
div/div[2]/div[1]/div/button[1]/span').click()
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-control[2]/
div/div[2]/div[1]/div/button[1]/span').click()
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-control[2]/
div/div[2]/div[1]/div/button[1]/span').click()
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-control[2]/
div/div[2]/div[1]/div/button[1]/span').click()
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-control[2]/
div/div[2]/div[1]/div/button[1]/span').click()
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-control[2]/
div/div[2]/div[1]/div/button[1]/span').click()
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-control[2]/
div/div[2]/div[1]/div/button[1]/span').click()
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-control[2]/
div/div[2]/div[1]/div/button[1]/span').click()
print("Valor 16 Reais")
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-control/div/
div[2]/div[2]/button/span').click()
print("aposta quintenaria realizada")
break

if condicao41 and condicao42 and condicao43 and condicao44


and condicao45 and condicao46 and condicao47:
print(f'GREEN 4 tentativa-> {resultadosj[:1]}')
time.sleep(2)
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div/2/div[3]/app-bet-controls/div/app-bet-control[2]/
div/div[2]/div[1]/div/button[2]/span').click()
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div/2/div[3]/app-bet-controls/div/app-bet-control[2]/
div/div[2]/div[1]/div/button[2]/span').click()
print("Valor retornado a 1 Real")
driver.find_element(By.XPATH, '/html/body/app-root/app-
game/div/div[1]/div[2]/div/div/2/div[3]/app-bet-controls/div/app-bet-control[2]/
div/div[2]/div[1]/div/button[1]/span').click()
time.sleep(10)
continue

while True:
resultadosh = [float(n) for n in driver.find_element(
By.CLASS_NAME, 'result-
history').text.replace('x', '').split('\n')][:10]

condicao48 = resultadosh[0] <= 2


condicao49 = resultadosh[1] <= 2
condicao50 = resultadosh[2] <= 2
condicao51 = resultadosh[3] <= 2
condicao52 = resultadosh[4] <= 2
condicao53 = resultadosh[5] <= 2
condicao54 = resultadosh[6] <= 2
condicao55 = resultadosh[7] >= 2

condicao56 = resultadosh[0] >= 2


condicao57 = resultadosh[1] <= 2
condicao58 = resultadosh[2] <= 2
condicao59 = resultadosh[3] <= 2
condicao60 = resultadosh[4] <= 2
condicao61 = resultadosh[5] <= 2
condicao62 = resultadosh[6] <= 2
condicao63 = resultadosh[7] >= 2

if condicao48 and condicao49 and condicao50 and


condicao51 and condicao52 and condicao53 and condicao54 and condicao55:
time.sleep(2)
print("RED")
time.sleep(2)
driver.find_element(By.XPATH, '/html/body/app-
root/app-game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-
control[2]/div/div[2]/div[1]/div/button[2]/span').click()
driver.find_element(By.XPATH, '/html/body/app-
root/app-game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-
control[2]/div/div[2]/div[1]/div/button[2]/span').click()
print("Valor retornado a 1 Real")
driver.find_element(By.XPATH, '/html/body/app-
root/app-game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-
control[2]/div/div[2]/div[1]/div/button[1]/span').click()
time.sleep(10)
break
if condicao56 and condicao57 and condicao58 and
condicao59 and condicao60 and condicao61 and condicao62 and condicao63:
print(f'GREEN 5 tentativa-> {resultadosj[:1]}')
time.sleep(2)
driver.find_element(By.XPATH, '/html/body/app-
root/app-game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-
control[2]/div/div[2]/div[1]/div/button[2]/span').click()
driver.find_element(By.XPATH, '/html/body/app-
root/app-game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-
control[2]/div/div[2]/div[1]/div/button[2]/span').click()
print("Valor retornado a 1 Real")
driver.find_element(By.XPATH, '/html/body/app-
root/app-game/div/div[1]/div[2]/div/div[2]/div[3]/app-bet-controls/div/app-bet-
control[2]/div/div[2]/div[1]/div/button[1]/span').click()
time.sleep(10)
continue

You might also like