Earlier this spring, I wanted to pull down spring training rosters and found that Wikipedia was the friendliest source. Below is the approach on which I landed. This code assumes you are using the scraped rosters in conjunction with the Lahman database.