No project description provided
Project description
nba_history
nba_history is a python package for dynamically scraping NBA player, team, and draft data.
nba_history returns all scraped data as a pandas dataframe with an option to also export results as a CSV.
example
A short example for scaping NBA draft information is below:
from nba_history import player_data, team_data
# scrape 2013 NBA draft picks
df = player_data.scrape_draft_data(start_year = 2013,
end_year = 2013,
export = False)
print(draft_picks_df.head())
Installation
nba_history depends on the Python modules requests, beautifulsoup, and pandas
Installation with pip: if you have pip
installed, type this in a terminal:
$ python -m pip install nba_history
Installation by hand: download the sources, either from PyPI or, if you want the development version, from GitHub, unzip everything into one folder, open a terminal and type:
$ (sudo) python setup.py install
Documentation
The nba_history package has 2 modules, player_data and team_data
player_data functions
team_data functions
##Contribute
nba_history is open-source library originally written by odonnell31_ and released under the MIT licence. The project is hosted on GitHub_, where everyone is welcome to contribute, ask for help or simply give feedback. Please read the Contributing Guidelines
_ for more information about how to contribute!
You can also discuss the project on Reddit. This is preferred over GitHub issues for usage questions and examples.
Maintainers
odonnell31 (owner)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for nba_history-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56b3be19ea187939fc2c8f9658a0836883336e0aa11079682786b4eed4cc4406 |
|
MD5 | 19ef0695bfe6b73cb04669f1bc990be9 |
|
BLAKE2b-256 | d26f23bf24108ecec43de57ca24858e17f3311a6c7f014c9c33577e523ab0a3a |