download_dje: Download Diarios da Justica Eletronicos (DJEs) from a...

Description Usage Arguments Value About DJEs Implemented TJs Examples

Description

This function downloads Diarios da Justica Eletronicos (Electronic Court Records) as PDFs. Given a Tribunal de Justica (Justice Court), a character vector of dates, and the path to a directory it will collect the DJEs published on these dates, and save them to the provided directory.

Usage

1
download_dje(tj, dates = Sys.Date(), path = ".", verbose = FALSE)

Arguments

tj

Abbreviation of a Justice Court (i.e. "TJSP")

dates

A character vector of dates of the form YYYY-MM-DD

path

Path to the directory where the DJEs should be downloaded

verbose

Whether to print download statuses

Value

A character vector with the paths to the downloaded DJEs

About DJEs

Electronic Court Records are documents published almost daily by every state's Justice Court containing important information regarding new lawsuits being filed, decisions being made by judges, and so on. Note that DJEs may be split into multiple "booklets"; when this happens it means that each booklet contains information about only one type of lawsuit.

Implemented TJs

Unfortunatelly download_dje() doesn't yet work with all 27 TJs in Brazil. Here are the ones already implemented:

Examples

1
2
3
4
5
## Not run: 
download_dje("TJSP", Sys.Date())
download_dje("TJSC", Sys.Date() - 0:3, verbose = TRUE)

## End(Not run)

abjur/dje documentation built on May 10, 2019, 4:11 a.m.