# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# # Nba Class

# +
class Nba:
    def __init__( self ):
        self.headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36'}
        self.apiUrl = 'https://stats.nba.com/stats/'

        self.apiEvents = 'https://stats.nba.com/events/'
        self.apiStats = 'https://stats.nba.com/stats/'


    def urlDebug( self, endPointUrlConstruct, endPointParams ):
        paramsStr = "&".join( [  str(p[0]) + '=' + str(p[1]) for p in endPointParams ] )
        return  endPointUrlConstruct + '?' + paramsStr


# -

# # Usage in other Notebook

# +
# # %run ../shared/nb-nba.class.ipynb

# +
# Nba = Nba()
# Nba.apiUrl
# -



StarcoderdataJupyterScriptsDedupFiltered