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.

download_cpopg(id, path = ".")

Arguments

id

A character vector of one or more lawsuit IDs

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_cpopg() 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_cpopg() doesn't yet work with all 27 TJs in Brazil. Here are the ones already implemented:

  • TJAM (Amazonas)

  • TJBA (Bahia)

  • TJSC (Santa Catarina)

  • TJSP (Sao Paulo)