wiscostret / fplscrapR

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.
Creative Commons Zero v1.0 Universal
76 stars 16 forks source link

get_player_hist is not working #4

Closed pradhann closed 5 years ago

pradhann commented 5 years ago

get_player_hist results in a parsing error.

The error can be fixed by removing url in

fplboot <- jsonlite::fromJSON(url(paste("https://fantasy.premierleague.com/api/element-summary/",elements$id[i],sep="")))$history_past

wiscostret commented 5 years ago

Thanks for the note. the url command shouldn't make difference, perhaps there was an issue with the restructure API at the moment.

If you are still experiencing the issue, please produce a minimum reproducible example.

wiscostret commented 5 years ago

Issue no longer relevant given package updates. Please open a new issue with a reprex if the issue persists.