Code Monkey home page Code Monkey logo

sports-betting's People

Contributors

pretrehr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sports-betting's Issues

Active fork

Puisque l'auteur du projet semble l'avoir abandonné, je reprends le projet dans un fork à cette adresse ouassimBenMosbah#1

Si vous avez des questions ou des besoins n'hésitez pas à basculer sur ce fork

import sportsbetting as sb

Bonjour,

Tout d'abord bravo pour le boulot, je rencontre une difficulté, sportsbetting n'est pas reconnu comme un module chez moi

image

Error while running pip install -r requirements.txt

Hello dev!
This is the error I get when I run pip install -r requirements.txt

Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
error in demjson setup command: use_2to3 is invalid.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Problème de récupération de côte

Bonjour,

Merci pour votre travail, cependant j'ai remarqué quelques problèmes lors de la récupération des côtes chez certains bookmaker. j'ai actuellement 4 ou 5 bookmakers uniquement qui fonctionnent "winamax","pmu","france_pari","zebet","netbet".

Une correction est-il prévu ?

Update?

Hello
Will there be an update to the script?
Currently, niesety does not want to work.

Lancement de l'interface graphique

Bonjour,

Ayant bien suivi les étapes :

Téléchargez ou clonez le dépôt
Allez à la racine du projet
Exécutez la commande  

pip install -r requirements.txt

Le terminal ne veut pas me lancer l'interface graphique.
J'ai pourtant bien python3.6 ?

ubuntu@ubuntu-N9EFzeU:~/Sports-betting-master$ python interface_pysimplegui.py Chrome version : 112.0.5615.49 Built on Ubuntu , running on Ubuntu 18.04 Matching Chrome and chromedriver versions /home/ubuntu/miniconda3/lib/python3.6/site-packages/OpenSSL/crypto.py:8: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography. The next release of cryptography will remove support for Python 3.6. from cryptography import utils, x509 Traceback (most recent call last): File "interface_pysimplegui.py", line 25, in <module> from sportsbetting.user_functions import parse_competitions, get_sports_with_surebet, trj_match File "/home/ubuntu/Sports-betting-master/sportsbetting/user_functions.py", line 8, in <module> import requests File "/home/ubuntu/miniconda3/lib/python3.6/site-packages/requests/__init__.py", line 95, in <module> from urllib3.contrib import pyopenssl File "/home/ubuntu/miniconda3/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py", line 46, in <module> import OpenSSL.SSL File "/home/ubuntu/miniconda3/lib/python3.6/site-packages/OpenSSL/__init__.py", line 8, in <module> from OpenSSL import crypto, SSL File "/home/ubuntu/miniconda3/lib/python3.6/site-packages/OpenSSL/crypto.py", line 3268, in <module> _lib.OpenSSL_add_all_algorithms() AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'

Pourriez-vous m'aider ?

Merci d'avance.

buteur

bonjour serait il possible d'ajouter les cotes des buteurs ? merci à vous

Ajouter une description

Bonjour cher pretrehr!

Peut-être que cette demande ne vous paraîtra pas claire, mais je voudrais vous demander de traduire le menu de votre programme en anglais et d'expliquer quoi et comment l'utiliser. Vous pouvez m'envoyer un courriel à [email protected].
Le fait est que le français n'est pas très clair pour moi, veuillez le faire en anglais. Expliquez-moi tous les menus, je vous en serai très reconnaissant.

Screenshot_8

Parsing JOA ne fonctionne plus

Salut, je crois que le parsing de joa ne fonctionne plus (pas de message d'erreur, les équipes s'affichent mais pas les cotes)
image

Récupération des cotes annexes

Bonjour,

Franchement gros respect pour ton travail, c'est impressionnant !

Je suis développeur (plutot java), et j'aurais aimé t'aider, notamment pour récupérer d'autres types de côtes (genre les rebonds, les contres au basket etc), pour pouvoir detecter plus de surebets !

Penses-tu que cela soit possible ?

Le problème de la collecte des résultats

Bonne journée.

Merci pour votre bon travail.
Il y a eu quelques difficultés. Je ne suis pas très doué en programmation, dites-moi la solution à cette erreur.

Jusqu'à la nouvelle année, j'ai utilisé votre programme sans problème, maintenant ce qui suit est apparu, regardez


Traceback (most recent call last):
File "C:\Users\root\sport\sportsbetting\user_functions.py", line 159, in parse_competitions
list_odds = ThreadPool(7).map(lambda x: parse_competitions_site(competitions, sport, x), sites)
File "C:\Users\root\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 364, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "C:\Users\root\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 771, in get
raise self._value
File "C:\Users\root\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "C:\Users\root\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 48, in mapstar
return list(map(*args))
File "C:\Users\root\sport\sportsbetting\user_functions.py", line 159, in
list_odds = ThreadPool(7).map(lambda x: parse_competitions_site(competitions, sport, x), sites)
File "C:\Users\root\sport\sportsbetting\user_functions.py", line 104, in parse_competitions_site
list_odds.append(parse_competition(competition, sport, site))
File "C:\Users\root\sport\sportsbetting\user_functions.py", line 91, in parse_competition
res = format_team_names(res_parsing, sport, competition)
File "C:\Users\root\sport\sportsbetting\auxiliary_functions.py", line 143, in format_team_names
list_odds.append(adapt_names(dict_odds[site], site, sport, competition))
File "C:\Users\root\sport\sportsbetting\auxiliary_functions.py", line 127, in adapt_names
add_matches_to_db(odds, sport, site, id_competition)
File "C:\Users\root\sport\sportsbetting\auxiliary_functions.py", line 49, in add_matches_to_db
teams = set(chain.from_iterable(list(map(lambda x: x.split(" - "), list(matches)))))
File "C:\Users\root\sport\sportsbetting\auxiliary_functions.py", line 49, in
teams = set(chain.from_iterable(list(map(lambda x: x.split(" - "), list(matches)))))
AttributeError: 'NoneType' object has no attribute 'split'


Merci d'avoir résolu ma question.

error with demjson

Bonjour pretrehr,

J'expérimente une erreur à l'import de demjson qui empeche le lancement. Après quelques recherches il s'agirait de demjson qui ne se construit pas avec la version actuelle de setuptools.

Des idées de manière de contourner le problème ?

Merci pour le travail et merci d'avance pour l'aide.

cannot import name 'gcd' from 'fractions'

C:\Users\x\Desktop\Sports-betting-master>python interface_pysimplegui.py
Traceback (most recent call last):
File "C:\Users\x\Desktop\Sports-betting-master\interface_pysimplegui.py", line 20, in
from sportsbetting.auxiliary_functions import get_nb_issues
File "C:\Users\x\Desktop\Sports-betting-master\sportsbetting\auxiliary_functions.py", line 14, in
import baseconvert
File "C:\Users\x\AppData\Local\Programs\Python\Python39\lib\site-packages\baseconvert_init_.py", line 1, in
from baseconvert.baseconvert import BaseConverter
File "C:\Users\x\AppData\Local\Programs\Python\Python39\lib\site-packages\baseconvert\baseconvert.py", line 118, in
from fractions import gcd
ImportError: cannot import name 'gcd' from 'fractions' (C:\Users\x\AppData\Local\Programs\Python\Python39\lib\fractions.py)

Don't work

interface_pysimplegui.py -work's fine
interface_pysimplegui_english.py - don't workm got this error

C:\Users\1\Downloads\Sports-betting-master>python interface_pysimplegui_english.
py
Chrome version : 90.0.4430.212
C:\Users\1\Downloads\Sports-betting-master\90\chromedriver.exe
Traceback (most recent call last):
File "interface_pysimplegui_english.py", line 23, in
from sportsbetting.interface_functions import (odds_table_combine,
ImportError: cannot import name 'get_main_competitions_interface' from 'sportsbe
tting.interface_functions' (C:\Users\1\Downloads\Sports-betting-master\sportsbet
ting\interface_functions.py)

Problem with chrome version and chromedriver

WARNING:root:Can not find chromedriver for currently installed chrome version.
Chrome version : 115.0.5790.171
Traceback (most recent call last):
File "C:\Sports-betting-master\Sports-betting-master\interface_pysimplegui.py", line 22, in
import sportsbetting as sb
File "C:\Sports-betting-master\Sports-betting-master\sportsbetting_init_.py", line 101, in
chromedriver_version = PATH_DRIVER.split("\")[-2]
AttributeError: 'NoneType' object has no attribute 'split'

No module named 'colorama'

Hi , i've tried to test your program but i have an issue.
I've install all the modules but still have this message :

"Traceback (most recent call last):
File "C:\prog_py\Sports-betting-master\interface_pysimplegui.py", line 20, in
from sportsbetting.auxiliary_functions import get_nb_issues
File "C:\prog_py\Sports-betting-master\sportsbetting\auxiliary_functions.py", line 14, in
from sportsbetting.database_functions import (get_formatted_name, is_in_db_site, is_in_db,
File "C:\prog_py\Sports-betting-master\sportsbetting\database_functions.py", line 4, in
import colorama
ModuleNotFoundError: No module named 'colorama'

"

Is there something i've done wrong ? ^^'

Thanks for the help anyway !

Slibar

Invalid decimal literal, demjson

Bonjour,
Je suis totalement inculte en programmation, et j'essaye de faire tourner cette application sans succès.

Lorsque je lance interface_pysimplegui.py j'ai cette erreur :

Exception has occurred: SyntaxError
invalid decimal literal (demjson.py, line 645)
File "C:\Users\User\Desktop\Sports-betting-master\sportsbetting\bookmakers\betway.py", line 8, in
import demjson
File "C:\Users\User\Desktop\Sports-betting-master\sportsbetting\parser_functions.py", line 8, in
from sportsbetting.bookmakers import (betclic, betfair, betway, bwin, france_pari, joa, netbet, parionssport,
File "C:\Users\User\Desktop\Sports-betting-master\sportsbetting\user_functions.py", line 29, in
from sportsbetting.parser_functions import parse
File "C:\Users\User\Desktop\Sports-betting-master\interface_pysimplegui_english.py", line 22, in
from sportsbetting.user_functions import parse_competitions
SyntaxError: invalid decimal literal (demjson.py, line 645)

Est-ce que quelqu'un pourrait m'aider ?

Merci beaucoup.

[ Suggestion ] Screenshots in your readme please

Oh wow.... I can tell from looking at your GUI code that you've got a complex GUI interface. I would love to know how it looks an I'm sure other visitors would too.

It's uncommon for Python programs to have a GUI, it's extra special when you run into one that does have a GUI. I think people are more likely to try out a program if they can see how the program looks. Even if they don't try it, it's still nice to be able to see someone's accomplishment.

Can you add a screenshot to your readme.md file? It's really easy with GitHub to embed an image. All you have to do is grab and drop or copy and paste your image into an Issue and then copy / paste the code that's cred by GitHub into you readme.md file. The same code that embeds an image into an Issue can be used to embed the image into the readme.md file.

Mise minimum Pinnacle

Bonjour,

Je ne vois pas ou je pourrais rajouter une variable pour calculer les paris gagnants avec une mise minimum sur les bookmakers annexes.
Par exemple, un combiné qui doit être gagnant sur betclic pour obtenir un freebet remplis les 9 possibilités avec betclic et complète avec un bookmaker annexe (souvent pinnacle qui est hors arjel) pour diminuer au minimum la perte. Cependant les mises proposé sur ce bookmaker annexe ne remplissent pas les conditions du bookmaker (par exemple pinnacle à un minimu de 5 euro par mise) et propose donc des mises < 5e.
L'autre méthode est de multiplier toutes les mises pour obtenir la même value avec comme plus petite mise des 9 possibilités à Xe

Fix requirements.txt

Need to check the content of requirements.txt. Some version have to be fixed.

Proposal !

I saw what you have developed here and probably from some small aspects you left this project, I am affiliated with 1xbet assian odds and many other houses and I am interested in developing something similar, please contact me at email [email protected] or on wp +373 796 43 746 surely I can help you monetize your application and develop it. Thanks in advance for your help and I hope to hear from you soon!

Cotes dépassées

Bonjour,

Tout d'abord, merci pour le travail effectué !

J'ai remarqué que certains sites (notamment pokerstars et unibet, peut être d'autres) renvoient parfois des données provenant d'un cache, ce qui donne des cotes qui ont changé depuis.

Cela arrive logiquement lorsque l'on fait plusieurs requêtes assez proches dans le temps.

Existerait-il un moyen de passer outre ces caches ? Ajouter les headers Cache-Control et Pragma ne semble pas suffire.

Cela est principalement dérangeant pour les surebets, qui restent souvent très peu longtemps.

parse_football

Hi,

Very interested in using and of course contributing to this project.

Can you please specify where I can find the parse_football() function for example?

Thanks !

Driver not started for unibet

Quand je lance l'interface graphique j'ai une erreur qui tourne en boucle.

Driver not started for unibet
Restarting driver

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.