download_cposg: Download second degree lawsuits filed in Brazilian Justice...

Description Usage Arguments Value About lawsuits Implemented TJs

Description

This function downloads lawsuits as HTMLs. Given a lawsuit ID, and the path to a directory it will collect the lawsuit, and save it to the provided directory.

Usage

1
download_cposg(id, path = ".")

Arguments

id

A character vector of one or more lawsuit IDs (only works with TJSP for now)

path

Path to the directory where the lawsuit should be saved

Value

A character vector with the path to the downloaded lawsuit

About lawsuits

The lawsuits contemplated by this funtion have to be filed in a Brazilian Tribunal de Justica (Justice Court). download_cposg() finds the lawsuit in its state's online Sistema de Automacao de Justica (Justice Automation System), solves the captcha withholding the information, and collects the HTML.

Implemented TJs

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


jtrecenti/esaj documentation built on June 20, 2019, 7:13 p.m.