I’d like to announce the availability of a library written in Ruby that allows you to download and process MLB baseball statistics from the MLB Gameday server. You can use the Gameday API library to easily build your own local store of MLB stats, or you can use it to pull live data for analysis. Gameday API makes it easy to parse play-by-play data, boxscores, linescores, pitchf/x data, and more.
You can read more about the Gameday API and download it here:
Also here is a blog post that shows how you would use Gameday API to download data from Gameday to your local computer: