mlb.com has changed their api structure, so the current version of this scraper will no longer work.
A Python implementation of the PitchRx package.
Pytchfx requires an sqlalchemy engine to function. Instructions on how to configure an sqlalchemy engine can be found here. link.
Below is a simple example that creates a database in memory from games between 2016/06/06 and 2016/06/09. Dates should be in the format 'YYYY/MM/DD'.
from pytchfx import scrape
from sqlalchemy import create_engine
engine = create_engine("sqlite://")
scrape(start='2016/06/06', end='2016/06/09', engine=engine)