From 51a9b4cb2722558afaff5c08e6d1ee02d8d7e932 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20de=20Jesus=20Filho?= Date: Sat, 7 Dec 2024 15:02:59 +0000 Subject: [PATCH] chore: adiciona repeated = TRUE em URLencode --- R/tjsp_ler_tabela_docs.R | 2 +- R/tjsp_ler_tabela_docs_cd_processo.R | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/R/tjsp_ler_tabela_docs.R b/R/tjsp_ler_tabela_docs.R index 64bba9d..c5c1f0f 100644 --- a/R/tjsp_ler_tabela_docs.R +++ b/R/tjsp_ler_tabela_docs.R @@ -52,7 +52,7 @@ tjsp_ler_tabela_docs <- function(arquivos = NULL, diretorio = "."){ }) |> dplyr::left_join(doc_name) |> dplyr::select(id_doc, doc_name, pagina_inicial, pagina_final, url_doc) |> - dplyr::mutate(url_doc = paste0("https://esaj.tjsp.jus.br/pastadigital/getPDF.do?",url_doc) |> URLencode()) |> + dplyr::mutate(url_doc = paste0("https://esaj.tjsp.jus.br/pastadigital/getPDF.do?",url_doc) |> URLencode(repeated = TRUE)) |> tibble::add_column(processo, .before =1) }) diff --git a/R/tjsp_ler_tabela_docs_cd_processo.R b/R/tjsp_ler_tabela_docs_cd_processo.R index c14fb64..28b4e5b 100644 --- a/R/tjsp_ler_tabela_docs_cd_processo.R +++ b/R/tjsp_ler_tabela_docs_cd_processo.R @@ -51,7 +51,7 @@ tjsp_ler_tabela_docs_cd_processo <- function(arquivos = NULL, diretorio = "."){ }) |> dplyr::left_join(doc_name) |> dplyr::select(id_doc, doc_name, pagina_inicial, pagina_final, url_doc) |> - dplyr::mutate(url_doc = paste0("https://esaj.tjsp.jus.br/pastadigital/getPDF.do?",url_doc) |> URLencode()) |> + dplyr::mutate(url_doc = paste0("https://esaj.tjsp.jus.br/pastadigital/getPDF.do?",url_doc) |> URLencode(repeated = TRUE)) |> tibble::add_column(cd_processo_pg, .before =1) |> tibble::add_column(cd_processo_sg, .after = 1) |> dplyr::mutate(instancia = ifelse(is.na(cd_processo_sg), 1, 2), .after = 2)