This project is a comprehensive tool for analyzing past UEFA European Championship results, extracting current tournament tables, and predicting future match outcomes using statistical models.
The project consists of the following main components:
get_pastresults.py
: A script to scrape historical match data from Wikipedia.get_tables.ipynb
: A Jupyter notebook to extract the current tournament tables from Wikipedia.predict_euros.ipynb
: A Jupyter notebook to predict the outcomes of future matches based on historical data.
-
Clone the repository:
git clone https://github.com/PelumiAdeboye/uefa-euro-match-predictor.git cd uefa-euro-match-predictor
-
Install the required packages:
pip install -r requirements.txt
-
Ensure you have Jupyter installed to run the notebooks:
pip install notebook
The get_pastresults.py
script scrapes historical match data from Wikipedia for the UEFA European Championships from 1980 to 2020.
python get_pastresults.py
This script will fetch data and save it in a structured format (e.g., CSV or DataFrame).
The get_tables.ipynb
notebook extracts the current tournament tables from the Wikipedia page of UEFA Euro 2024.
Open the notebook:
jupyter notebook get_tables.ipynb
Run all cells to fetch and process the current tables.
The predict_euros.ipynb
notebook uses historical data and statistical models to predict the outcomes of future matches.
Open the notebook:
jupyter notebook predict_euros.ipynb
Run all cells to load data, train the prediction model, and output the predictions.
- Historical match data: Wikipedia pages of past UEFA European Championships.
- Current tournament tables: Wikipedia page of UEFA Euro 2024.