hkenawi / FPL-optimizer

This repository contains the source code for an optimizer model that evaluates a user's team and recommends optimal decision making regarding transfers and chip usage
2 stars 0 forks source link

Find open-source data for xPts model #1

Closed hkenawi closed 3 months ago

hkenawi commented 3 months ago

FBRef has great historical data for results. Can be used for xCleanie model. https://fbref.com/en/comps/9/2020-2021/schedule/2020-2021-Premier-League-Scores-and-Fixtures Just need to figure out how to download/scrape

hkenawi commented 3 months ago

FBRef also has great player match data and player seasonal historical data. Would be very tedious to go per player and manually export each one. Look into doing this faster.

For an example of the player match log data, refer to this link: https://fbref.com/en/players/cd1acf9d/matchlogs/2022-2023/c9/Trent-Alexander-Arnold-Match-Logs

If we can find a way to automate this for every player in the premier league for the last 5(debatable, any thoughts on this would be good) seasons, we would have perfect data for an xG and xA model

hkenawi commented 3 months ago

We also need shooting/passing metrics per season per player. This doesn't need to be game by game but more so seasonal averages. The following example would be found here: https://fbref.com/en/players/99127249/dom_lg/Antony-Domestic-League-Stats

hkenawi commented 3 months ago

FBRef player match-log data retrieved which contains xG and xA for each player and each match over the last 5 seasons.

hkenawi commented 3 months ago

Retrieve team defensive and goalkeeping data from FBRef

hkenawi commented 3 months ago

Team defensive and goalkeeping data from FBRef has been retrieved. Closing this with understanding that clean sheet data is still needed. Creating separate new issue for that.