I'm trying to download the following url into an R dataframe:
http://www.fantasypros.com/nfl/rankings/qb.php/?export=xls
(It's the 'Export' link on the public page: http://www.fantasypros.com/nfl/rankings/qb.php/)
However, I'm not sure how to 'parse' the data? I'm also looking to automate this and perform it weekly, so any thoughts on how to build this into a weekly-access workflow would be greatly appreciated! Have been google searching and scouring stackoverflow for a couple hours now to no avail... :-)
Thank you,
Justin
Attempted Code:
getURL("http://www.fantasypros.com/nfl/rankings/qb.php?export=xls")
This just gives me a string that starts like:
[1] "FantasyPros.com \t \nWeek 8 - QB Rankings \t \nExpert Consensus Rankings (ECR) \t \n\n Rank \t Player Name \tTeam \t Matchup \tBest Rank \t Worst Rank \t Ave Rank \t Std Dev \t\n1\tPeyton Manning\tDEN\t vs. WAS\t1\t5\t1.2105263157895\t0.58877509625419\t\t\n2\tDrew Brees\tNO\t vs. BUF\t1\t7\t2.6287878787879\t1.0899353819483\t\t\n3\tA...