courts.tjpb.client.TJPBScraper
courts.tjpb.client.TJPBScraper()Scraper for the Tribunal de Justica da Paraiba (TJPB).
Uses the PJe jurisprudence search at pje-jurisprudencia.tjpb.jus.br. Built on the same platform developed by TJRN (Laravel + Elasticsearch).
Methods
| Name | Description |
|---|---|
| cjsg | Search TJPB jurisprudence. |
| cjsg_download | Download raw CJSG JSON responses from TJPB. |
| cjsg_parse | Parse downloaded CJSG JSON responses. |
| cpopg | Stub: first instance case consultation not implemented for TJPB. |
| cposg | Stub: second instance case consultation not implemented for TJPB. |
cjsg
courts.tjpb.client.TJPBScraper.cjsg(
pesquisa=None,
paginas=None,
nr_processo='',
id_classe_judicial='',
id_orgao_julgador='',
id_relator='',
id_origem='8,2',
decisoes=False,
**kwargs,
)Search TJPB jurisprudence.
Parameters
pesquisa : str Free-text search term (searched in ementa). paginas : int, list, range, or None Pages to download (1-based). None downloads all. nr_processo : str, optional Process number filter. id_classe_judicial : str, optional Judicial class ID. id_orgao_julgador : str, optional Judging body ID. id_relator : str, optional Reporter judge ID. id_origem : str, optional Origin filter. "8,2" for all (default), "8" for Turmas Recursais, "2" for Tribunal Pleno/Camaras. decisoes : bool If True, include monocratic decisions.
Returns
pd.DataFrame
cjsg_download
courts.tjpb.client.TJPBScraper.cjsg_download(
pesquisa=None,
paginas=None,
**kwargs,
)Download raw CJSG JSON responses from TJPB.
Returns
list List of raw JSON responses (one per page).
cjsg_parse
courts.tjpb.client.TJPBScraper.cjsg_parse(resultados_brutos)Parse downloaded CJSG JSON responses.
Returns
pd.DataFrame
cpopg
courts.tjpb.client.TJPBScraper.cpopg(id_cnj)Stub: first instance case consultation not implemented for TJPB.
cposg
courts.tjpb.client.TJPBScraper.cposg(id_cnj)Stub: second instance case consultation not implemented for TJPB.