luizrgf2 / cassinobet

5 stars 2 forks source link

Ajuda #1

Open joaocarlossm opened 2 years ago

joaocarlossm commented 2 years ago

Olá, você poderia me ajudar a rodar o seu código? Achei ele bem interessante.

luizrgf2 commented 2 years ago

Olá, poderia sim, tem bastante tempo que desenvolvi, para ser sincero não sei se funciona ainda.

joaocarlossm commented 2 years ago

Olá, eu resolvi fazer o meu próprio e estou com um problema, espero que possa me ajudar. Eu utilizei o selenium e coloquei alguns prints, e criei um executável, mas os prints não saem no cmd na hora que eu executo eles. Você sabe como resolver isso?

Em ter., 19 de out. de 2021 às 22:07, Luiz Ricardo Gonçalves Felipe < @.***> escreveu:

Olá, poderia sim, tem bastante tempo que desenvolvi, para ser sincero não sei se funciona ainda.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/luizrgf2/cassinobet/issues/1#issuecomment-947222744, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKPXK4I5MBKIPTJR67I5QF3UHYI3HANCNFSM5E7ZQ2TQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

luizrgf2 commented 2 years ago

Ola, se puder me mandar seu código posso te ajudar.

joaocarlossm commented 2 years ago

É um código simples com Selenium, mas na hora que eu crio o executável com o pyinstaller os prints não aparecem.

import os import sys import time

from bs4 import BeautifulSoup from selenium import webdriver from selenium.webdriver.firefox.options import Options

config_name = 'geckodriver.exe'

determine if application is a script file or frozen exe

if getattr(sys, 'frozen', False): application_path = os.path.dirname(sys.executable) application_path = os.path.splitdrive(application_path ) print(application_path) elif file: application_path = os.path.dirname(file) application_path = os.path.splitdrive(application_path) print(application_path)

config_path = os.path.join(application_path[0]+'/', config_name) print(config_path) driver = webdriver.Firefox(executable_path=config_path)

option = Options() option.headless = True url = "https://blaze.com/en/games/crash" Entrada = False EntradaM = False driver.get(url) time.sleep(5) resultadoAnt = 0 penumresultadoAnt = 0 count = 0 cont = 0 i = 0 m= 0 montante = 1000 while True: tab = @.***='entries']")[0].get_attribute('outerHTML') soup = BeautifulSoup(tab, 'html.parser') resultado = (soup.find('span')).contents[0] penumresultado = (soup.find_all('span'))[1].contents[0] antpenumresultado = (soup.find_all('span'))[2].contents[0] time.sleep(1.0) str(resultado).split(',') str(penumresultado).split(',') resultado = resultado.split('X') resultado = float(resultado[0]) penumresultado = penumresultado.split('X') penumresultado = float(penumresultado[0]) antpenumresultado = antpenumresultado.split('X') antpenumresultado = float(antpenumresultado[0]) print(resultado)

Em sex., 22 de out. de 2021 às 08:41, Luiz Ricardo Gonçalves Felipe < @.***> escreveu:

Ola, se puder me mandar seu código posso te ajudar.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/luizrgf2/cassinobet/issues/1#issuecomment-949551440, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKPXK4OHVUFKMCWQAS7LG63UIFEXDANCNFSM5E7ZQ2TQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

AtilaQueiroz2 commented 2 years ago

Olá ainda funciona?

AtilaQueiroz2 commented 2 years ago

Poderia me ajudar a rodar ?

joaocarlossm commented 2 years ago

Olá Atila, você gostaria de rodar o robo do cassino ou o código que eu fiz?

luizrgf2 commented 2 years ago

Oi, eu não sei se ainda funciona, possivelmente não, tem muito tempo que desenvolvi e o bet é bem chato com bots rodando na plataforma deles, na época desenvolvi para testar meus conhecimentos também fiz uma para o bet365.