This package enables those interested in Fantasy Premier League to perform detailed data analysis of the game, using the FPL's JSON API. The fplscrapR functions help R users collect and parse data from the Official Fantasy Premier League website.
You can install the released version of fplscrapR from GitHub with:
if (!require(remotes)) {
install.packages("remotes")
}
remotes::install_github("wiscostret/fplscrapR")
library(fplscrapR)
On the fplscrapR website, you can find examples for alle the functions available in fplscrapR, showing you how you can easily use the package to perform simple yet interesting FPL analysis.
Key changes to fplscrapR v0.2.0:
-
All functions updated to align with FPL's restructured API for the '19/20 season.
-
Access to key FPL data from prior seasons on players and fixtures.
-
Improved error messaging
-
Access to full list of mini-league entries (with get_league_entries)
-
Player and entry functions now default to grab all available player data if no name/id is supplied.
-
Name parameter added to get_player_details to avoid confusion of finding player ID's.
-
Vignettes updated
-
Logo added
-
Various bug fixes
If you have an questions or wish to collaborate, etc., find me on GitHub or Twitter