A wrapper around the API of Nigerias major betting sites
Project description
NaijaBet-Api
A python library that provides access to the odds data of Nigeria's major betting sites.
It provides access to Bet9ja, Betking and Nairabet's 1X2 and doublechance soccer odds.
Basic Usage
Import the requested bookmaker:
from NaijaBet_Api.bookmakers import bet9ja, betking, nairabet
Access specific bookmaker
from NaijaBet_Api.bookmakers import bet9ja
b9 = bet9ja.Bet9ja()
Obtain League data:
note: in order to access a specific league you need to provide the league as an argument via the Betid Enum Class
from NaijaBet_Api.bookmakers import bet9ja
from NaijaBet_Api.id import Betid
b9 = bet9ja.Bet9ja()
b9.get_league(Betid.PREMIERLEAGUE)
Obtain all league data:
from NaijaBet_Api.bookmakers import bet9ja
from NaijaBet_Api.id import Betid
b9 = bet9ja.Bet9ja()
b9.get_all()
The get_all and get_league methods return a list of dicts
example:
[{'away': 1.92,
'draw': 3.75,
'draw_or_away': 1.28,
'home': 4.0,
'home_or_away': 1.3,
'home_or_draw': 1.89,
'league': 'Premier League',
'league_id': 135975,
'match': 'Brentford FC - Arsenal FC',
'match_id': 4467373,
'time': 1628881200000},
{'away': 5.6,
'draw': 4.8,
'draw_or_away': 2.47,
'home': 1.54,
'home_or_away': 1.21,
'home_or_draw': 1.18,
'league': 'Premier League',
'league_id': 135975,
'match': 'Manchester United FC - Leeds United',
'match_id': 4467299,
'time': 1628940600000},]
TODO
- Add Sportybet
- Add all soccer leagues
- Add access to available bookmaker odds for specific matches
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file NaijaBet_Api-0.2.17.tar.gz.
File metadata
- Download URL: NaijaBet_Api-0.2.17.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68eca2c19103c40caa96b2991dd16554d4627082a3b28d5e8bada4dd900422f7
|
|
| MD5 |
9365538f9cdd760d868573758d926294
|
|
| BLAKE2b-256 |
92d9246563a666e73af50552043abc6e2bc53cf8ec609fe4e6a78bca3fea5621
|
File details
Details for the file NaijaBet_Api-0.2.17-py3-none-any.whl.
File metadata
- Download URL: NaijaBet_Api-0.2.17-py3-none-any.whl
- Upload date:
- Size: 23.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4681cd196c32ec78384529a6fb80108bcf72688a3c35ce9b1d4a48f0d080e37
|
|
| MD5 |
8bcddfb4930d3eef5ef2a86dc366b2c9
|
|
| BLAKE2b-256 |
6f4977850e9fef75ae49b94a39a610849d89dd6d01cb6569257a37ce6382af38
|