The main goal of ffscrapr 1.1.0 will be to replicate the features of 1.0.0 but for Sleeper. Some other changes and tweaks will be added eventually!
sleeper_getendpoint()lower level wrapper - design seems a little awkward (“pass each element of the url to become slash-separated parts of the path”) - but will roll forward with it anyway, I think that makes the most sense.
sleeper_getendpoint()- wasn’t really being used, would be used by higher-level functions. May change if cookies etc are used later.
ff_userleagues()- Sleeper league IDs are more annoying than MFL to handle, so the more intuitive way is to look up the user’s league_ids by username. MFL does have a parallel feature even if used for different purposes.
ff_franchises()(220.127.116.1105) and added separate testing file.
Here is a list of new functions available at the top level (ie for all platforms)
ff_userleagues()returns a list of user leagues. This is deployed slightly differently for MFL and Sleeper - MFL requires authentication to access user’s leagues, while Sleeper doesn’t have authentication so you can look up any user you like.
This is the first (major) version of ffscrapr and it is intended to build out the full set of functions for the first API platform: MFL.
Future versions will add more platforms via methods mapped to the same functions.
mfl_connect) to establish connection parameters and ratelimiting
mfl_getendpointas a low-level function for making GET requests from MFL
ff_draftgets draft results
ff_draftpicksgets current and future draft picks that have not yet been selected
ff_franchisesgets franchise-level identifiers and divisions
ff_leaguegets league-level summaries of rules, players, and franchises
ff_playerscoresgets playerweek-level scores
ff_rostersgets franchise-level rosters complete with naming
ff_schedulegets weekly fantasy schedules
ff_scoringgets scoring rules
ff_standingsgets league-level season summaries
ff_transactionsgets a list of all transactions and cleans them into a data frame.