This function fetches captain information for a Fantasy Premier League entry given the entry ID(s) and GW(s).
get_entry_captain(entryid = NULL, gw = NULL)
entryid | The entry ID(s). Can be found on the FPL website under 'Gameweek history' in the URL - https://fantasy.premierleague.com/entry/XXXXXX/history. |
---|---|
gw | The gameweek(s) for which captain is requested. |
get_entry_captain(1076,5)#> Error in open.connection(con, "rb"): HTTP error 404.