bRasilLegis - XML content does not Seem to be XML

Asked

Viewed 107 times

4

I’m trying to lower the votes of Members to the propositions in votes held in the Plenary of the House of Representatives, in 2015, through the package bRasilLegis in R. But when I put the proposition number in the "number" argument of the function the following error appears:

Error: XML content does not Seem to be XML: 'Unable to get votes from Parliamentarians.

The given command was as follows:

 votesPec <- obterVotacaoProposicao(tipo = "PEC", numero = 185, ano = 2015). 

I’m having trouble identifying what I might be putting wrong in the code.

P.S: when I put the example given in the package "help":

votesPec358.2013 <- obterVotacaoProposicao(tipo = "PEC", numero = 358,ano = 2013)

It works normally, so I’m guessing it’s something in the command I wrote.

  • Always put the reference of where you got such a package, it helps to find them so you can test the examples.

1 answer

3


The problem is not in your command. Apparently this query is invalid and the camera server itself returns this result.

> httr::content(httr::GET('http://www.camara.gov.br/SitCamaraWS/Proposicoes.asmx/ObterVotacaoProposicao?',
+                   query = list(Tipo = "PEC",
+                                Numero = 185,
+                                Ano = 2015)))
[1] "N&#227;o foi possivel obter os votos dos Parlamentares.\r\n"

Are you sure a proposition this year and with this number actually happened?

  • 1

    Yes, I went to check and the problem was in fact the year of proposition.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.