There's several scrapers to parse the MLB XML data, the most popular (I think) is Baseball On A Stick, in Python:
Re:Open Football Data
by kunwardeepgill on Wednesday May 21, 2014 @01:17PM
(#7779422)
Thank you for sharing this! I just started looking for MLB Data yesterday. Great timing!
http://www.seanlahman.com/baseball-archive/statistics/
Then of course MLB has a bunch of data here, mainly the PitchF/X data since 2008 is gathered from here.
http://gd2.mlb.com/components/game/mlb/