This repository hosts the code for FPL mini-league statistics website. Running the main program (mini-league.py) will do the following:
-
Scrape the official FPL API for
- Mini-league statistics
- Use gameweek history
- Player data
-
Analyse and Create required graphs and charts
-
Create a static (html+css) website with all the analysed data, which can be accessed using index.html
- Mini-League table
- Team_Name,Season Points,GW Points,GW bench points,GW transfers,GW_Captain,current league rank,last league rank,Total team Value
- League Race (line-chart)
- Captain choice of the league (pie-chart)
- Season points Total (bar-chart)
- Season points+ points on bench (stacked bar-chart)
- Gameweek points on bench (bar-chart)
- Gameweek points+bench points (stacked bar-chart)
- Team value + In the bank (stacked bar-chart)
- Clone the repo
- install the requirements
pip install -r requirements.py
- Run the program
python mini-league.py
- It will ask for the League ID
- Enter the league ID and hit enter
- Wait for programe to finish
- You mini-league website is ready under web folder
- compress (zip) the web directory after running the program
- head to https://tiiny.host/
- Register and upload the ZIP file
- your free site is ready!
- Python
- Pandas
- plotly
- jinja2
- Simply Amazed HTML Template by Tooplate