Skip to content

Instantly share code, notes, and snippets.

@tonyelhabr
Created September 8, 2022 22:28
Show Gist options
  • Save tonyelhabr/d2f12fbfbb0ba9b24464cd11c74b8034 to your computer and use it in GitHub Desktop.
Save tonyelhabr/d2f12fbfbb0ba9b24464cd11c74b8034 to your computer and use it in GitHub Desktop.
2022 UCL Final from Fotmob
library(dplyr)
library(worldfootballR)
match <- fotmob_get_matches_by_date('2022-05-28') |> filter(name == 'Champions League Final Stage')
match_details <- fotmob_get_match_details(match$match_id)
match_details |> select(id, home_team, home_team_id, away_team, away_team_id, team_id, min, min_added, xg = expected_goals)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment