courts.tjro.client.TJROScraper

courts.tjro.client.TJROScraper()

Scraper for the Tribunal de Justica de Rondonia (TJRO).

Uses the JURIS Elasticsearch backend at juris-back.tjro.jus.br.

Methods

Name Description
cjsg Search TJRO jurisprudence.
cjsg_download Download raw CJSG JSON responses from TJRO.
cjsg_parse Parse downloaded CJSG JSON responses.
cpopg Stub: first instance case consultation not implemented for TJRO.
cposg Stub: second instance case consultation not implemented for TJRO.

cjsg

courts.tjro.client.TJROScraper.cjsg(
    pesquisa=None,
    paginas=None,
    tipo=None,
    nr_processo='',
    magistrado='',
    orgao_julgador='',
    orgao_julgador_colegiado='',
    classe_judicial='',
    instancia=None,
    termo_exato=False,
    **kwargs,
)

Search TJRO jurisprudence.

Parameters

pesquisa : str Free-text search term. paginas : int, list, range, or None Pages to download (1-based). None downloads all. tipo : list, optional Document types. Default ["EMENTA"]. Options include "ACORDAO", "DECISAO", "SENTENCA", "VOTO", etc. nr_processo : str, optional Process number filter. magistrado : str, optional Judge/magistrate name. orgao_julgador : int or str, optional Judging body ID. orgao_julgador_colegiado : int or str, optional Collegiate judging body ID. classe_judicial : str, optional Judicial class name. instancia : list, optional Jurisdiction grades (e.g. [1], [2], [1, 2]). termo_exato : bool If True, search for exact term.

Returns

pd.DataFrame

cjsg_download

courts.tjro.client.TJROScraper.cjsg_download(
    pesquisa=None,
    paginas=None,
    **kwargs,
)

Download raw CJSG JSON responses from TJRO.

Returns

list List of raw JSON responses (one per page).

cjsg_parse

courts.tjro.client.TJROScraper.cjsg_parse(resultados_brutos)

Parse downloaded CJSG JSON responses.

Returns

pd.DataFrame

cpopg

courts.tjro.client.TJROScraper.cpopg(id_cnj)

Stub: first instance case consultation not implemented for TJRO.

cposg

courts.tjro.client.TJROScraper.cposg(id_cnj)

Stub: second instance case consultation not implemented for TJRO.