There is not a webscraper for MLB data because there really is no need for one. There are several websites that store data in text format. For example, go to
http://www.seanlahman.com/baseball-archive/statistics/
and download a .zip file of .csv data. You can use import delimited to load the data into Stata.