An abstraction layer for the MLB.com “API”. Note: It’s an unofficial API! Calling it an API is probably a stretch, but it certainly works like one. You can use the library to retrieve detailed information on teams, players, including their game logs and yearly totals.
The project is hosted at github.
Requirements
Installation (replace FILE.zip and DIRECTORY with the appropriate values):
Examples
Some examples can be found on the project’s github Wiki.
A script to retrieve and parse Gameday XML data from MLB.com servers, saving it to a MySQL database. Can used to pull for an entire year or by month/day. Also supports ‘delta’ mode where it picks from where it last left off. From this original post.
The project is hosted at github.
Requirements
Installation/Usage
Consult the github wiki.
Python script to retrieve and parse Retrosheet play-by-play files and create a MySQL database. From this original blog post.
The project is hosted at github.
Requirements
Installation/Usage
Consult the github README.
2 Responses to Baseball projects
Mo on August 21st, 2010 at 12:35 am
Hi,
First off thanks for this post! I see that you are accessing info of players, schedules, etc…however I was wondering if there was a way to leverage the Standings “API”. You don’t have to go through the trouble of writing the code for it but if it is possible a guideline on how to access it would be helpful.
Thanks,
Wells on August 26th, 2010 at 9:50 am
Hi Mo- I’d love to use a standings API, but as far as I can tell (and I’ve looked) there’s no data files (XML or JSON) for retrieving the standings from MLB.com.
Leave a comment