{"id":17923796,"url":"https://github.com/sebastiaanspeck/bettingbook-cli","last_synced_at":"2025-04-03T09:21:50.736Z","repository":{"id":120032998,"uuid":"130120668","full_name":"sebastiaanspeck/bettingbook-cli","owner":"sebastiaanspeck","description":"⚽️ Betting for hackers. 💻 A command line interface to keep track of your soccer bets.","archived":false,"fork":false,"pushed_at":"2021-10-28T14:14:54.000Z","size":240,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T22:44:47.079Z","etag":null,"topics":["cli","league-standings","live-scores","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sebastiaanspeck.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-18T20:52:55.000Z","updated_at":"2023-11-26T11:21:30.000Z","dependencies_parsed_at":"2023-06-14T19:15:32.482Z","dependency_job_id":null,"html_url":"https://github.com/sebastiaanspeck/bettingbook-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastiaanspeck%2Fbettingbook-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastiaanspeck%2Fbettingbook-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastiaanspeck%2Fbettingbook-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastiaanspeck%2Fbettingbook-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sebastiaanspeck","download_url":"https://codeload.github.com/sebastiaanspeck/bettingbook-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246970367,"owners_count":20862540,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","league-standings","live-scores","python"],"created_at":"2024-10-28T20:45:36.665Z","updated_at":"2025-04-03T09:21:50.709Z","avatar_url":"https://github.com/sebastiaanspeck.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"BettingBook CLI\n=====\n\nA CLI to keep track of your soccer bets.\n\nInstall\n=====\n\nAn API key from [Sportsmonks](https://sportmonks.com/) will be required and you can register for one [here](http://sportmonks.com/register).\n\n### Build from source\n\n```bash\n$ git clone https://github.com/sebastiaanspeck/bettingbook-cli.git\n$ cd bettingbook-cli/src\n```\n\n#### Notes:\n- Currently only tested on Windows and MacOS with Python 3. Might work on other platforms, but this is not yet tested.\n\n- To get colorized terminal output on Windows, make sure to install [ansicon](https://github.com/adoxa/ansicon/releases/latest) and [colorama](https://pypi.python.org/pypi/colorama).\n\n- You need the packages click and requests. You can install these using pip (pip install \\\u003cpackage\\\u003e).\n\nUsage\n====\n\n### View live scores from various leagues\n\n```bash\n$ bettingbook.py --live\n```\n\n### View matches from various leagues for today\n\n```bash\n$ bettingbook.py --today\n```\n\n#### Note:\n--live only shows the matches that are live now or are finished, to view games that have not started yet, use --today\n\n### Get scores for all leagues with a set time period\n\n```bash\n$ bettingbook.py --matches --days=10 # get scores for all leagues over the coming 10 days\n```\n\n### Get scores for a particular league\n\n```bash\n$ bettingbook.py --matches --league=DE1 # DE1 is the league code for Bundesliga\n$ bettingbook.py --matches --league=FR1 --history --days=15 # get scores for all the French Ligue 1 games over the past 15 days\n$ bettingbook.py --matches --league=EN1 --history --details # get scores for all the Premier League games over the past 6 days and showing the goalscorers.\n$ bettingbook.py --matches --league=NL1 --history --odds # get odds for all the Eredivisie games over the past 6 days and showing the odds (in corresponding colors).\n```\n\n### View all your bets\n```bash\n$ bettingbook.py --all_bets\n```\n\n### View account details\n\n```bash\n$ bettingbook.py --account\n```\n\n### Help\n```bash\n$ bettingbook.py --help\n```\n### List of supported leagues \u0026 cups and their league codes\n\n- Germany:\n  - DE1: Bundesliga\n  - DEC: DFB Pokal\n- France:\n  - FR1: Ligue 1\n  - FRC: Coupe de France\n- Spain:\n  - ES1: La Liga\n  - ESC: Copa Del Rey\n- Italy:\n  - IT1: Serie A\n  - ITC: Coppa Italia\n- England:\n  - EN1: Premier League\n  - ENC: FA Cup\n- Portugal:\n  - PT1: Primeira Liga  \n- Netherlands:\n  - NL1: Eredivisie\n  - NL2: Eerste Divisie/Keuken Kampioen Divisie\n  - NLC: KNVB Beker\n- Belgium:\n  - BE1: Pro League\n  - BEC: Belgian Cup\n- Europe:\n  - CL: Champions League\n  - EL: Europa League\n  - WCEQ: WC Qualification Europe\n  - EQ: Euro Qualification\n  - EC: European Chamionship\n  - UNL: UEFA Nations League\n- World:\n  - WC: World Cup\n\n### Supported leagues \u0026 cups\n\nFor a full list of supported leagues \u0026 cups [see this](src/league_files/all_leagues.json).\n\n### Commands and possible arguments\n- --live (-L):\n  - --league (-l)\n  - --details (-D)\n  - --odds (-O)\n  - --bet (-B)\n  - --refresh (-R)\n- --today (-T):\n  - --league (-l)\n  - --details (-D)\n  - --odds (-O)\n  - --bet (-B)\n  - --refresh (-R)\n- --matches (-M):\n  - --league (-l)\n  - --days (-d)\n  - --history (-H)\n  - --details (-D)\n  - --odds (-O)\n  - --bet (-B)  \n- --standings (-S):\n  - --league (-l)\n- --all_bets (-AB)\n- --open_bets (-OB)\n- --closed_bets (-CB)  \n- --profile (-P)  \n- --possible_leagues (-PL)\n\nCommands (live, today, matches, standings) and flags (details, odds, history, bet and refresh) can be used as -UPPERCASE.  \nParameters (league, days) can also be used as -lowercase\n\n\n### Abbreviations\nThe abbreviations you can see when using live, today or matches are explained down here:\n\nAbbreviation | Definition | Information\n--- | --- | ---\nNS |\tNot Started\t| The initial status of a game\nLIVE |\tLive |\tThe game is currently in-play\nHT |\tHalf-Time |\tThe game currently is in half-time\nFT |\tFull-Time\t| The game has ended after 90 minutes\nET |\tExtra-Time |\tThe game currently is in extra time, can happen in knockout games\nPEN_LIVE |\tPenalty Shootout |\tET status didn't get a winner, penalties are taken to determine the winner\nAET |\tFinished after extra time\t| The game has finished after 120 minutes\nBREAK |\tRegular time finished\t| Waiting for extra time or penalties to start\nFT_PEN | Full-Time after penalties |\tFinished after penalty shootout\nCANCL |\tCancelled\t| The game has been cancelled\nPOSTP\t| Postponed\t| The game has been postponed\nINT\t| Interrupted\t| The game has been interrupted. Can be due to bad weather\nABAN | Abandoned | The game has abandoned and will continue at a later time or day\nSUSP | Suspended | The game has suspended and will continue at a later time or day\nAWARDED\t| Awarded |\tWinner is being decided externally\nDELAYED\t| Delayed\t| The game is delayed so it wil start later\nTBA\t| To Be Announced\t| Fixture will be updated with exact time later\nWO | Walkover\t| Awarding of a victory to a contestant because there are no other contestants\nAU | Awaiting Updates | Can occur when there is a connectivity issue or something\n\n\nTodo\n====\n- [ ] Add more competitions (divisions under the first divisions)\n- [ ] Add option to get matches for a specific team\n- [ ] Add support to show cards\n- [ ] Add support for live betting\n- [x] Update balance at runtime\n- [x] Add built-in watch feature so you can run once with --live and just leave the program running.\n- [x] Add option to view active/finished bets.\n- [x] Add odds to match overviews\n- [x] Add color coding for Europa league and Champions League\n- [x] Add cups\n- [x] Add Champions League and Europa League\n- [x] Add detailed information to match results\n- [x] Add league filter for live scores\n- [x] Add league standings\n- [x] Add --details to league standings (details are won, draw, lost, goal for, goal against)\n- [x] Add betting functions\n\nLicense\n====\nOpen sourced under [MIT License](LICENSE)\n\nNotes\n===\nThis project is still in development. It works but it may contain bugs. If you find a bug, please open report issue via Github.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastiaanspeck%2Fbettingbook-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebastiaanspeck%2Fbettingbook-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastiaanspeck%2Fbettingbook-cli/lists"}