Skip to content

Commit

Permalink
Update tjsp_baixar_cpopg.R
Browse files Browse the repository at this point in the history
  • Loading branch information
jjesusfilho authored May 31, 2024
1 parent 4eb74ea commit cfc7b5f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/tjsp_baixar_cpopg.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,13 @@ tjsp_baixar_cpopg1 <- function (processo = NULL, diretorio)
dadosConsulta.valorConsultaNuUnificado = processo, dadosConsulta.valorConsulta = "",
uuidCaptcha = "")

if (foro == '0500'){
query1$consultaDeRequisitorios = "true"
}

resposta1 <- httr::RETRY("GET", url = uri1, query = query1,
quiet = TRUE, httr::timeout(2))

conteudo1 <- httr::content(resposta1)

if (xml2::xml_find_first(conteudo1, "boolean(//div[@id='listagemDeProcessos'])")) {
Expand Down

0 comments on commit cfc7b5f

Please sign in to comment.