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.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c39745f35084b9a74f482c4f40ae4f6f8277e7152a0d7d8cbadea3f558753cea |
|
MD5 | 650c75fa500ce817f7e04d2fd574053c |
|
BLAKE2b-256 | f5500097bff5897aa6729cbe39c23e035402aa0b53dd8fa82020342028eec504 |