For code examples, check the examples.py file.
Importing:
from nbb_api import nbb
Functions:
Gets the individual statistics of all NBB players from a given season.
Parameters:
season: Desired season (from'2008-09'to'2022-23')fase: Desired season phase (one of'regular','playoffs','total')categ: Desired category of stats (one of'cestinhas','rebotes','assistencias','arremessos','bolas-recuperadas','tocos','erros','eficiencia','duplos-duplos','enterradas')tipo: Data format (one of'avg','sum'). Default value is'avg'.quem: Whether to return data from players or teams (one of'athletes','teams'). Default value is'athletes'.sofrido: Whether to return numbers suffered by the team (one ofTrue,False). Only meaningful for team stats. Default value isFalse.
Gets the standings of NBB regular season from a given season.
Parameters:
season: Desired season (from'2008-09'to'2022-23')
Gets all the NBB scores from a given season.
Parameters:
season: Desired season (from'2008-09'to'2022-23')fase: Desired season phase (one of'regular','playoffs','total')
Importing:
from nbb_api import ldb
Functions:
Gets the individual statistics of all LDB players from a given season.
Parameters:
season: Desired season (from2011to2022without 2020)fase: Desired season phase (one of'regular','total')categ: Desired category of stats (one of'cestinhas','rebotes','assistencias','arremessos','bolas-recuperadas','tocos','erros','eficiencia','duplos-duplos','enterradas')tipo: Data format (one of'avg','sum'). Default value is'avg'.quem: Whether to return data from players or teams (one of'athletes','teams'). Default value is'athletes'.sofrido: Whether to return numbers suffered by the team (one ofTrue,False). Only meaningful for team stats. Default value isFalse.
Gets the standings of LDB regular season from a given season.
Parameters:
season: Desired season (from2011to2022without 2020)
Gets all the LDB scores from a given season.
Parameters:
season: Desired season (from2011to2022without 2020)fase: Desired season phase (one of'regular','total')
Importing:
from nbb_api import liga_ouro
Functions:
Gets the standings of Liga Ouro regular season from a given season.
Parameters:
season: Desired season (from2014to2019)
Gets all the Liga Ouro scores from a given season.
Parameters:
season: Desired season (from2014to2019)fase: Desired season phase (one of'regular','playoffs','total')