Avi 1
Avi 1
Avi 1
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.get('https://estrelabet.com/')
print('Atualizando site...')
driver.refresh()
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]
while True:
resultadosj = [float(n) for n in driver.find_element(
By.CLASS_NAME, 'result-history').text.replace('x', '').split('\
n')][:10]
while True:
resultadosh = [float(n) for n in driver.find_element(
By.CLASS_NAME, 'result-history').text.replace('x',
'').split('\n')][:10]
while True:
resultadosh = [float(n) for n in driver.find_element(
By.CLASS_NAME, 'result-history').text.replace('x',
'').split('\n')][:10]
while True:
resultadosh = [float(n) for n in driver.find_element(
By.CLASS_NAME, 'result-
history').text.replace('x', '').split('\n')][:10]