Python library to get FIFA Ranking since 2007.
Project description
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
PyPI package is not available yet, 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.
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
Hashes for pyrankingfifa-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 064660800526fdeae3109c634f96c107c69603494a7ece5767ef8aa6d47ada83 |
|
MD5 | 3298100f200fae06d63fc2d320d1d66f |
|
BLAKE2b-256 | da1fb70fcc3698ac18850791b87af70f9ab01ceb4fd406c867f00b1c9b28e85d |