This small project can import football results by using a webcrawler and analyse the data in flask.
It was created to learn flask, web crawling, data processing and data visualization.
- flask generates an interactive GUI environment
- extract the soccer results from the official DFB-website (https://www.dfb.de/index/)
- format and save the data in CSV-files automatically
- get season overviews
- create dynamic data diagrams
- calculate the attack/defence value of each club and try to predict the results (based on poisson)
- compare the predicted and real results by using the coefficient of determination (R²)
-
open
main.py
and choose the url for a league -
run:
GET_ALL(url)
- results will be saved in a CSV-file automatically (folder: CSV)
- open
main.py
and select the CSV-file you want to work with
start START_Gui.py
(default IP: 127.0.0.1:5000)