demarians / Trainpy

Mi repositorio de practicas
Other
0 stars 0 forks source link

Football statistic project: script for using data collector #8

Open kilian-student opened 7 months ago

kilian-student commented 7 months ago

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.

kilian-student commented 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)

kilian-student commented 7 months ago

image

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/

kilian-student commented 7 months ago

I scraped the data from understat.com

You can find it in data/raw_data/understat_data.json