jldbc / pybaseball

Pull current and historical baseball statistics using Python (Statcast, Baseball Reference, FanGraphs)
MIT License
1.19k stars 324 forks source link

top_prospects examples doesn't work #284

Closed ForceConstant closed 1 year ago

ForceConstant commented 1 year ago

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")
tjburch commented 1 year ago

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 commented 1 year ago

Being addressed in #307

tjburch commented 1 year ago

Closing with the merge of #307