This Repository created using open data from Statsbomb AFCON 2023
We can use mplsoccer package to access the dataset.
!pip install mplsoccer #If you haven't installed it yet
from mplsoccer import Sbopen
#See the list of matches available
parser = Sbopen()
matches = parser.match(competition_id=1267,season_id=107) # this for AFCON 2023
# For the event data
events, related, freeze, tactics = parser.event(match_id=)