6
Good afternoon guys!! I would like to have asked this question there in this post, which I reference in the title, however it was not possible.
What happens is this: I am using, for the same purpose, the resolution of our dear friend Tpiccarelli (link: R - download CVM data via POST (package httr)).
The question is, the only thing that has changed is the site (url to which the post is sent), but I cannot return the correct answer.
What do I get the following message: "Error in Curl::curl_fetch_memory(url, Handle = Handle) : Failed to connect to siteseguro.bovespa.com.br port 443: Connection refused"
And the answer that comes in XML is : "1 "404 - File or directory not found.Server Error404 - File or directory not found.The Resource you are Looking for Might have been Removed, had its name changed, or is temporarily unavailable."
Seeking to know what it might be, I read that it may be some proxy problem (novice here doesn’t even know what it is -.-) or firewall... anyway. Someone could shed a light??
below follows the code I am using:
library(httr)
library(xml2)
cvm <- "https://siteseguro.bovespa.com.br/rad/download/SolicitaDownload.asp"
informs <- list(txtLogin = "Login",
txtSenha = "senha",
txtData = "data",
txtHora = "hora",
txtDocumento = "ITR")
acesso <- POST(url = cvm,
body =informs ,
encode = "json",
verbose())
conteudo=(read_xml(acesso$content))
xml_text(conteudo)
Thanks Eduardo worked here too! Taking advantage that you are in the same as me, I wonder if Oce has a i formation to give me. Multiple download information is very bad, it is hard to know what each item means. In Infofinadfin, file that contains ITR, DFP, etc., the "Valorconta", for example, extiste Valorconta 1, 2 ..., 12, would you know if there is a pattern? example: account value 2 is for the current quarter, but in the DFC for example, the current quarter comes in Valorconta 4. Is there a manual explaining what each information means? Hugs and thank you!
– Daniel Street
To solve the problem ITR, DFP and Account Value, I made a map, in Excel, that relates all these details. I could send you this spreadsheet.
– Eduardo
would show hein!! certainly have a lot of people looking for it, Oce could go up to a git too ! my email : [email protected]
– Daniel Street