I have been trying everything I can find online to log in and set cookies and certificates.... can't seem to get past the redirect to a login screen.
Here is what I am trying to do:
##################################################
library("RCurl")
library("XML")
loginURL <- "http://games.espn.go.com/ffl/signin"
dataURL <- "http://games.espn.go.com/ffl/clubhouse?leagueId=123456&teamId=8&seasonId=2014"
# ESPN Fantasy Football Login Screen
userID <- dQuote("myUsername")
pword <-dQuote("myPassword")
pushbutton <- dQuote("OK")
# concatenate the url and log in options
FFLsigninURL <- paste(loginURL ,
"&username=",userID,
"&password=",pword,
"&submit=",pushbutton)
page <- getURL(loginURL , verbose = TRUE)
and this seems to be leading me to a redirect for logging in - so Problem 1 - login not working
Part 2- one logged in - How can I proceed to the dataURL to scrape the tables? I tried login parameters on the data page as well but still get redirected to a login screen.
I'm sure I am missing something simple - just not seeing it...