pybaseball icon indicating copy to clipboard operation
pybaseball copied to clipboard

top_prospects examples doesn't work

Open ForceConstant opened this issue 3 years ago • 1 comments

Trying below, I get "No tables found"

from pybaseball import top_prospects

# Get top pitching prospects for the Toronto Blue Jays
topProspects = top_prospects("bluejays", "pitchers")

ForceConstant avatar Aug 08 '22 13:08 ForceConstant

Looks like mlb changed the url found here to use TeamId rather than team name. We probably need to update it.

Team format: https://www.mlb.com/prospects/stats?teamId=111

tjburch avatar Aug 08 '22 14:08 tjburch

Being addressed in #307

tjburch avatar Feb 18 '23 13:02 tjburch

Closing with the merge of #307

tjburch avatar Feb 26 '23 13:02 tjburch