Does anyone here know of a site where I can download all of the boxscores from the current MLB season to excel? I have a nice little DB going from retrosheet but I need the current up-to-date game logs from this season and they don't have them. Thanks.
MLB Boxscore Question??
Collapse
X
-
roasthawgSBR MVP
- 11-09-07
- 2990
#1MLB Boxscore Question??Tags: None -
MrXSBR MVP
- 01-10-06
- 1540
#2Nope, but the mlb.com boxscores have remained blessedly consistent for years so it's relatively easy to write code to automatically download and parse them. Same goes for the gamelogs if you need data not found in the boxscores. You can also get pfx data this way which isn't available from retrosheet.Comment -
Sinister CatSBR MVP
- 06-03-08
- 1090
#3Further to MrX's response, the stuff on mlb.com is available in xml format, and is indeed easy to parse.
Here's a link to a boxscore. Note that you can navigate through the directory structure (with a web browser) to look around and see what else they have, including pbp data in the "inning" and "pbp" directories for each game.
Comment -
roasthawgSBR MVP
- 11-09-07
- 2990
#4So you gotta use a data scraper to get them into excel right? I mean without copying and pasting one game at a time?
I'm trying to figure out this data scraping stuff right now...no easy chore. I've downloaded a couple of trial editions to see if I can get them to do what I need and have had some luck so far but it's tough. Thanks for the help.Comment -
Sinister CatSBR MVP
- 06-03-08
- 1090
#5So you gotta use a data scraper to get them into excel right? I mean without copying and pasting one game at a time?
I'm trying to figure out this data scraping stuff right now...no easy chore. I've downloaded a couple of trial editions to see if I can get them to do what I need and have had some luck so far but it's tough. Thanks for the help.
I'm scraping mlb boxscore stuff using Tcl with its http and htmlparse packages (there are also xml parsers available for Tcl).
Here's a blog I came across where the author is doing it using Groovy: http://kousenit.wordpress.com/2007/08/
Perl would also be a popular choice for this kind of thing.Comment
Search
Collapse
SBR Contests
Collapse
Top-Rated US Sportsbooks
Collapse
#1 BetMGM
4.8/5 BetMGM Bonus Code
#2 FanDuel
4.8/5 FanDuel Promo Code
#3 Caesars
4.8/5 Caesars Promo Code
#4 DraftKings
4.7/5 DraftKings Promo Code
#5 Fanatics
#6 bet365
4.7/5 bet365 Bonus Code
#7 Hard Rock
4.1/5 Hard Rock Bet Promo Code
#8 BetRivers
4.1/5 BetRivers Bonus Code