A library that has scraped data from basketball reference
Project description
# Basketball Reference Web Scraper [Basketball Reference](http://www.basketball-reference.com) is a great site (especially for a basketball stats nut like me), and hopefully they don’t get too pissed off at me for creating this.
Basically, I created this repository as a utility for another project where I’m trying to estimate an NBA player’s productivity as it relates to daily fantasy sports. For that project, I need box score and scheduling information, which is provided by this utility.
## Getting Box Scores There are two methods that return box scores for a given date:
BoxScoreWebScraper.return_box_scores_for_date(date) * Returns a list of Box Score objects
BoxScoreWebScraper.return_json_encoded_box_scores_for_date(date) * Returns a JSON object representation of a list of Box Score objects
## Getting Season Schedule Information There are also two methods that return scheduling information for a given season start year (note that the NBA season generally spans two calendar years):
SeasonScheduleWebScraper.return_schedule(season_start_year) * Returns a Schedule object
SeasonScheduleWebScraper.return_json_encoded_schedule(season_start_year) * Returns a JSON representation of a Schedule object
## Writing to CSV I also created two utility classes (BoxScoresCsvWriter and ScheduleCsvWriter) that write box score and season data to the src/persistence/csv/box_scores and src/persistence/csv/schedules directories.
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
Hashes for basketball_reference_web_scraper-1.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1a50924493502f2e8a5c20ccb1f591066d822efaba47e50dac8b1bc440e356f |
|
MD5 | 1edce2b2f52062e07d150ee28ea71f3b |
|
BLAKE2b-256 | 7f330c4ea23483436a0c417bae7232fc6d64f06dde8326b08f4e36b0e6ef0de3 |