Open kilian-student opened 7 months ago
An important taskt of the script will be to simplify the OpenLigaDB access keys from the keywords we understand.
Example: Bundesliga (our key) -> 'bl1' (OpenLigaDB key)
Their might be a problem with the data for one match: OpenLigaDB is not providing statistical information
There are other api's like: https://statorium.com/english-premier-league-api-football-data that have more match details
Or another idea. Scrap data from this webpage: https://understat.com/ here we can get the expected goals and other very important statistics!
https://www.sergilehkyi.com/2019/06/web-scraping-advanced-football-statistics/
I scraped the data from understat.com
You can find it in data/raw_data/understat_data.json
First find the neccessary keys to evaluate the game. The keys need to match with the OpenLigaDB API (https://github.com/OpenLigaDB/OpenLigaDB-Samples)
A script is needed that calls the data colllector with the correct keys.