Find the shortest path between two football players based on the teams they have played for using the breadth-first search algorithm.
Inspired by this CS50 Project.
Data from worldfootball.net.
-
Clone this repository to your local machine.
-
Ensure that you have installed Python.
-
Install the dependencies listed in requirements.txt.
pip install -r requirements.txt
-
Run footballers_connections.py.
You will be prompted to provide the Worldfootball URL of the initial player and the final player.
Alternatively, you can provide the aforementioned information as two command-line arguments, like this:
python footballers_connections.py [initial_player] [final_player]
This project is licensed under the MIT License - see the LICENSE file for details.