Releases: jaebradley/basketball_reference_web_scraper
Add include_inactive_games to player box scores methods
Add API method to get standings
Add API method for player box scores from playoff games
Fix extra whitespace in search API method player name
Changes from #199 where the search API was returning a player's name with extra whitespace characters.
Fixes league values for players that did not play a season
Resolves #184
In each of the cases mentioned on the issue, the player did not participate for a given season.
In Alonzo Mourning's case it was due to illness
In Dominique Wilkins' case it was due to playing in other professional leagues
And in Rick Barry's case it was for legal reasons
So when parsing leagues from a player's page (when search redirects to player's page when they are only matching result) check to see if league is None
.
Upgrade lxml to 4.5.1
Upgrade lxml
to latest version.
Fix player names with * suffix and utf-8 encoding issue for Windows machines
Summary
The relevant changes to the API are around
- Fixing player names in season total tables
- Basketball Reference started adding
*
to the end of player names. The related changes (#176) strip out these*
values
- Fixing a
utf-8
encoding issue for Windows machines (#173) whereCSV
andJSON
files need to have theirencoding
argument specified asutf8
(#180)
There are also changes related to creating an HTTPService
and ParserService
but these should not have any implications on the behavior of the external API.
Allow ability to get combined player advanced season statistics
Summary
#163 addresses issue #92 which allows end-users to fetch combined player advanced season statistics.
Before this change, advanced season statistics were for a given player / team / season combination (so Jimmy Butler
, while playing for the Philadelphia 76ers
in the 2017-2018
season).
Now, by passing include_combined_values=True
to the players_advanced_season_totals
method, end-users will also receive advanced statistic data for players across the entire season.
These records will have the new is_combined_totals
field set to true
(while all other records will have this field set to false
).
Additionally, these records will have a null
team
field associated with them.
Add search API method
Implements a client method that supports returning values from Basketball Reference's search
page (example URL: https://www.basketball-reference.com/search/search.fcgi?search=ko).
An implementation challenge was supporting Basketball Reference's behavior of going directly to a specific page when a single result is returned by a search term.
4.7.1
Accidentally re-released 4.7.0