Shows the shortest connection between Messi and a Goalkeeper
This project is my attempt at a football version of - Oracle of bacon
Website also shows number of goals Messi has scored on a goal keeper across various competitions
Shows the shortest connection between Messi and a Goalkeeper
Tested on Python 3.10.8
Create virtual environment
python3 -m venv messi
source messi/bin/activate
Install dependencies
pip install --upgrade pip
pip install -r requirements.txt
Run web app
python app.py
# For football tree go to -
`http://127.0.0.1:5050`
# For stats go to -
`http://127.0.0.1:5050/stats`
create_player_data.py
- Parses urls to extract information of clubs that a football player has belonged to
Breadth first search code borrowed from - https://github.com/a8hay/kevin-bacon-bfs
API dashboard - https://dashboard.api-football.com/
- Make website faster -
- Use Parquet file format instead of csv for faster loading [ done ]
- Donot load dataframe multiple times
- Do not over use fuzzy matching
- Expand across other players than Messi. That is make the reference player dynamic
- Embed youtube video of latest goal vs goal keeper
- Better error handling
- Testing sripts
- Create an ETL pipeline to update data dynamically
- Move player vs detailed stats to another branch
- Get pictures of players from "data/FIFA22_official_data.csv"
- Might require multiple refreshes to show connections for some players.
- Need to update dataset to have more correct info on what clubs / national teams a player played for