I'm trying to access a website, fill out your form and download the file, but I'm encountering some difficulties.
This is my code so far:
#library's
require(rvest)
#website
url <- ("http://www.anbima.com.br/est_termo/Curva_Zero.asp")
pgsession <- html_session(url)
pgform <-html_form(pgsession)[[1]]
param <- set_values(pgform,
"escolha" = "2",
"Dt_Ref" = Sys.Date()
)
submit <- submit_form(pgsession, form = param, "Consultar")
But it returns an error submitting the submit: Erro: Could not find possible submission target.
Can anyone help me?