courts.tjpr.client.TJPRScraper

courts.tjpr.client.TJPRScraper()

Scraper for the Court of Justice of Paraná.

Methods

Name Description
cjsg Searches for TJPR jurisprudence in a simplified way (download + parse).
cjsg_download Downloads raw results from the TJPR jurisprudence search (multiple pages).
cjsg_parse Extracts relevant data from the HTMLs returned by TJPR.
cpopg Stub: Primeiro grau case consultation not implemented for TJPR.
cposg Stub: Segundo grau case consultation not implemented for TJPR.

cjsg

courts.tjpr.client.TJPRScraper.cjsg(
    pesquisa=None,
    paginas=None,
    data_julgamento_inicio=None,
    data_julgamento_fim=None,
    data_publicacao_inicio=None,
    data_publicacao_fim=None,
    **kwargs,
)

Searches for TJPR jurisprudence in a simplified way (download + parse). Returns a ready-to-analyze DataFrame.

cjsg_download

courts.tjpr.client.TJPRScraper.cjsg_download(
    pesquisa=None,
    paginas=None,
    data_julgamento_inicio=None,
    data_julgamento_fim=None,
    data_publicacao_inicio=None,
    data_publicacao_fim=None,
    **kwargs,
)

Downloads raw results from the TJPR jurisprudence search (multiple pages). Returns a list of HTMLs (one per page).

Parameters

Name Type Description Default
pesquisa Optional[str] Search term. termo is accepted as deprecated alias. None
paginas int, list, range, or None Pages to download (1-based). int: paginas=3 downloads pages 1-3. range: range(1, 4) downloads pages 1-3. None: downloads all available pages. None

cjsg_parse

courts.tjpr.client.TJPRScraper.cjsg_parse(resultados_brutos, criterio=None)

Extracts relevant data from the HTMLs returned by TJPR. Returns a DataFrame with the decisions.

cpopg

courts.tjpr.client.TJPRScraper.cpopg(id_cnj)

Stub: Primeiro grau case consultation not implemented for TJPR.

cposg

courts.tjpr.client.TJPRScraper.cposg(id_cnj)

Stub: Segundo grau case consultation not implemented for TJPR.