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_cposg(id, path = ".")
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 |
A character vector with the path to the downloaded lawsuit
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.
Unfortunatelly download_cposg()
doesn't yet work with all 27
TJs in Brazil. Here are the ones already implemented:
TJSP (Sao Paulo)