I don't have enough of a reputation to comment, but a couple of things:
Minor, but the variable name in the batter section should be 'batter_name" and not 'pitcher_name'. Won't affect the code, but tidiness is good.
Is there a way to add the MLB Id to this? I've been looking for (or trying to develop) a scraper for lineups which include the MLB ID. I know it's in this sources string for batter/pitcher names, but just can't figure out how to extract it.