kooora-unofficial-api
Kooora unofficial Python API.
Installation
pip3 install kooora
Current features
- Search by keyword (leagues, teams, players)
- Fetch matches by
- Date
- League
- Team
- Fetch match info
- General information
- Stats (played matches)
- Fetch team info
- Fetch league info
- League table
- Scorers
Examples
Below are some basic examples to use the library:
Initialize Kooora class
from kooora.kooora import *
api = Kooora()
Get the names of the leagues being played today
today_matches = api.get_today_matches()
# today_matches is a dict which keys are league ID numbers, let's extract the IDs
*today_matches_ids, = today_matches
for id in today_matches_ids[]:
print(League.from_id(id).get_title())
Get matches being played today in a given league (example with spanish liga)
for match in today_matches[22393]:
print(match)
Fetch stats for a given match
yesterday = api.get_yesterday_matches()[22495].get_stats()
Initialize a League variable by ID and fetch its ranking and top scorers
liga = League.from_id(22393) # you can also use api.search
liga_table = liga.get_table()
top_scorers = liga.get_top_scorers()
Find a team by its name and fetch its next match
eibar = None
for t in liga.get_teams():
if t.get_name() == "إيبار":
eibar = t
break
Contributing
The project is still at a very early stage. See https://github.com/marrakchino/kooora-unofficial-api/projects/1 for a list of ideas or kindly open an issue to raise a bug or submit a feature request.
Idea
I've been fiddling with Kooora's website for years trying to understand the multiple aspects of the data they provide and had the idea of creating a public API of it knocking around my head since at least 2017. The initial version of this unofficial API was made possible by reverse-engineering Kooora's official Android application both by reversing the code and by sniffing the network requests.
License: MIT
Metadata
Release files for kooora 1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kooora-1.2.tar.gz | 3.1 kB | Without provenance | Details for kooora-1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kooora-1.2-py3-none-any.whl | Python 3 | none | any | Details for kooora-1.2-py3-none-any.whl |
Total release size: 6.2 kB
Release files / kooora-1.2.tar.gz
| Download URL | kooora-1.2.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb2279627339d5edc93fa309524eb6a189f8f5f65ae96a89dfca8080418f8115
|
|
BLAKE2b-256 checksum How to use checksums |
849bd92a1812c646222d198da8b49abefda0e1af9e316b6207ee1807fa39f7d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|
Release files / kooora-1.2-py3-none-any.whl
| Download URL | kooora-1.2-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c665cddb92eff9799d0b179622746b86b555a97f76abbfd601adf0b1c57c72b6
|
|
BLAKE2b-256 checksum How to use checksums |
12aa617370c75d9a4e59a947c74dca92d47d60e7b35970b284d1eda6fff0266a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|
Security for kooora 1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.