如何使用R登录网站并执行某些操作?我认为下面的代码非常接近,但似乎有些东西在这里。
library(httr)
library(XML)
handle <- handle("http://subscribers.footballguys.com")
path <- "amember/login.php"
# fields found in the login form.
login <- list(
amember_login = "username"
,amember_pass = "password"
,amember_redirect_url =
"https://www.google.com/accounts/Login"
)
response <- POST(handle = handle, path = path, body = login)
对此的任何见解都将非常感激。