Metadata-Version: 2.1
Name: nba_player
Version: 0.6.7
Summary: Get all NBA player data into JSON format
Home-page: https://github.com/avyayv/python_nba_players
Author: Avyay Varadarajan
Author-email: avyayv@gmail.com
License: UNKNOWN
Description: # NBA Player Data into JSON
        
        ## Installation
        ```
        pip install nba-player
        ```
        
        ## Usage
        
        ```
        import datanba
        ```
        
        ### Get All Players
        ```
        data = datanba.player_stats.AllOfBasketball(arr)
        ```
        arr is the years that you want in the normal year format for NBA (i.e ["2018-19"])
        
        To get all player data into JSON
        
        ```
        data = datanba.player_stats.AllOfBasketball(["2018-19"])
        data.gather("players.json", exists=False)
        ```
        Only use this if you have nothing in your players.json file or it does not exist at all.
        
        However, since you will be polling a lot, you might have your connection work or the NBA stats API will limit you, so if scraping stops in the middle, you can change your code to:
        
        ```
        data = datanba.player_stats.AllOfBasketball(["2018-19"])
        data.gather("players.json", exists=True)
        ```
        Then, scraping will continue from where it left off.
        
        ### Use Player JSON data
        
        After polling once, you can reuse the output form the JSON file as long as you would like(until the data that you have polled has become old), by using these commands.
        
        ```
        import datanba.player_stats as datanba
        data = datanba.AllOfBasketball(["2018-19"])
        players = data.players_from_json('players.json')
        ```
        Now you have all NBA players in your `players` variable.
        
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
