A Boxscore object contains the main stats for a given (single) ballgame.
Each instance has a boxBattingStats and boxPitchingStats objects containing the game's batting and pitching totals.
Each instance also has arrays of boxBatter and boxPitcher objects containing the player stats.
The instance has two occurrances of this set of four sub-types, one for the home team, one for the away team.
The GameDayBoxScore class extends GameDayXML.
All four of the stats classes extend boxPlayer class.
GameDayBoxScore [go] |
GameDayXML [go] |
.gameId "game_id"
.dt "date"
.flag "status_ind"
.venue "venue_name"
.venueId "venue_id"
.gameInfo "game_info"
.{away|home}Id "team_id"
.{away|home}FName "team_fname"
.{away|home}SName "team_sname"
.{away|home}Code "team_team_code"
.homeSport "home_sport_code"
.{away|home}Wins "team_wins"
.{away|home}Loss "team_loss"
.{away|home}Hits "linescore/team_team_runs"
.{away|home}Runs "linescore/team_team_hits"
.{away|home}Errs "linescore/team_team_errs"
.innings - number of innings
.{away|home}Box "inning_line_score/{team"
.{away|home}Batting "batting/@"
.{away|home}Batters[] "batting/batter/@"
.{away|home}Pitching "pitching/@"
.{away|home}Pitchers[] "pitching/pitcher/@"
|
.url - URL object .filebase - GameDay files base path .hostpath - http URL path .savename - XML filename .txt - http response text .xml - XML DOM object .statusCode - http response code .statusText - http response message .headers - dict of response headers |
boxBattingStats |
boxPlayer |
.ab "ab" .r "r" .h "h" .d "d" .t "t" .hr "hr" .rbi "rbi" .bb "bb" .so "so" .po "po" .da "da" .lob "lob" .avg "avg" .textInfo "text_data" |
The boxPlayer class has no data members. It does have two methods: .header() - return data header string .data() - return data tuple |
boxPitchingStats |
boxPlayer |
.bf "bf" .out "out" .er "er" .h "h" .r "r" .hr "hr" .so "so" .bb "bb" .era "era" |
The boxPlayer class has no data members. It does have two methods: .header() - return data header string .data() - return data tuple |
boxBatter |
boxPlayer |
.pid "id" .pos "pos" .name "name" .player "name_display_first_last" .note "note" .avg "avg" .fldg "fldg" .s_h "s_h" .s_r "s_r" .s_hr "s_hr" .s_rbi "s_rbi" .s_bb "s_bb" .s_so "s_so" .bo "bo" .ab "ab" .pa calculated .h "h" .d "d" .t "t" .r "r" .hr "hr" .rbi "rbi" .bb "bb" .hbp "hbp" .sb "sb" .so "so" .po "po" .sac "sac" .sf "sf" .lob "lob" .gidp "gdip" .ao "ao" .go "go" .a "a" .da "da" .e "e" |
The boxPlayer class has no data members. It does have two methods: .header() - return data header string .data() - return data tuple |
boxPitcher |
boxPlayer |
.pid "pid" .pos "pos" .name "name" .player "name_display_first_last" .note "note" .w "w" .l "l" .era "era" .whip calculated .s_ip "s_ip" .s_er "s_er" .s_h "s_h" .s_r "s_r" .s_so "s_so" .s_bb "s_bb" .bf "bf" .out "out" .er "er" .h "h" .r "r" .hr "hr" .so "so" .bb "bb" .sv "sv" .bs "bs" .hld "hld" .w_flag "win" .l_flag "loss" .sv_flag "save" .bs_flag "blown_save" |
The boxPlayer class has no data members. It does have two methods: .header() - return data header string .data() - return data tuple |