Up to date association football league tables, made with Python
#Introduction
A simple python script which gets the current league table for various football leagues of the world. It uses the football-data API.
- Run the script
- Enter the required League ID
- The League table for the selected league will be displayed.
- Python 3
- Python requests module
- Install Python.
- Go to Command Line.
- Run the following commands
``` $ py -m pip install requests ``` # Sample I/O
####Input
398
####Output
Position Team Name Points Goals Scored Goals Conceded Goal Difference
1 Arsenal FC 43 37 21 16
2 Leicester City FC 43 38 25 13
3 Manchester City FC 40 39 21 18
4 Tottenham Hotspur FC 36 34 17 17
5 West Ham United FC 35 33 24 9
...
###Supported Leagues
The script accesses the football-data.org API, and can only use their data for the leagues.
Currently, the leagues supported are -
- Bundesliga
-
- Bundesliga
- Ligue 1
- Ligue 2
- Barclays Premier League
- Primera Division
- Segunda Division
- Serie A
- Primeira Liga
-
- Bundesliga
- Eredivisie
The API used can be found here