pyrankingfifa
A lightweight and zero dependencies Python library that allows you to extract the Ranking FIFA since 2007.
This library wraps the FIFA Ranking through ceroaceros/soccerzz website. Note this isn't affiliated with FIFA or ceroaceros.
Installation
From PyPI
pip install pyrankingfifa
From source code clone it
git clone https://github.com/manucabral/pyrankingfifa.git
Usage
Setting up
from pyrankingfifa import Ranking
mens_ranking = Ranking('mens')
womens ranking is not available for now
Let's get current ranking.
ranking = mens_ranking.get()
for team in ranking:
print(team.rank, team.name, team.points)
If you need more rank positions apply the param page=id
Let's get a specific ranking date.
ranking = mens.get(year=2018, month='aug')
for team in teams:
print(team)
The library saves all requests rankings for a faster request speed, if you want to remove these files call refresh() method.
Constributions
All constributions, bug reports or fixes and ideas are welcome.
Metadata
Release files for pyrankingfifa 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyrankingfifa-0.0.4.tar.gz | 7.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyrankingfifa-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.2 kB
Release files / pyrankingfifa-0.0.4.tar.gz
| Download URL | pyrankingfifa-0.0.4.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bd9150ca0e34619af09358eb0538ec3e22fab08ec04a56d7ee38c502da546740
|
|
BLAKE2b-256 checksum How to use checksums |
c3e8daf20f4e1524dfa645647f999bf2ca12ce020793c5f47e1ccdab94c9e5eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|
Release files / pyrankingfifa-0.0.4-py3-none-any.whl
| Download URL | pyrankingfifa-0.0.4-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
89a0d848785f7c1f376861c9c7bb1894b9372d50e0d1d9e354f9f038dbcf7308
|
|
BLAKE2b-256 checksum How to use checksums |
9ecdfc0cddea25ac32bf80960de97aa8c6d8898826f9070b43a6d1fb17ac8b8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|