I'm trying to scrape web data but first step requires a login. I've successfully been able to log into other websites but I a weird error with this website.
library("rvest")
library("magrittr")
research <- html_session("https://www.fitchratings.com/")
signin <- research %>%
html_nodes("form") %>%
extract2(1) %>%
html_form() %>%
set_values (
'userName' = "abc",
'password' = "1234"
)
research <- research %>%
submit_form(signin)
When I run the 'submit_form' line I get the following error:
> research <- research %>%
+ submit_form(signin)
Submitting with '<unnamed>'
Error: length(url) == 1 is not TRUE
Submitting with unnamed is correct b/c there is no name assigned to the sign in button. Any help appreciated!