courts.tjdft.client.TJDFTScraper

courts.tjdft.client.TJDFTScraper()

Scraper for the Court of Justice of the Federal District and Territories (TJDFT).

Methods

Name Description
cjsg Searches for TJDFT jurisprudence in a simplified way (download + parse).
cjsg_download Downloads raw search results from the TJDFT jurisprudence search (using requests).
cjsg_parse Extracts structured information from the raw TJDFT search results.
cpopg Stub for compatibility with BaseScraper.
cposg Stub for compatibility with BaseScraper.

cjsg

courts.tjdft.client.TJDFTScraper.cjsg(pesquisa=None, paginas=None, **kwargs)

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

cjsg_download

courts.tjdft.client.TJDFTScraper.cjsg_download(
    pesquisa=None,
    paginas=None,
    sinonimos=True,
    espelho=True,
    inteiro_teor=False,
    quantidade_por_pagina=10,
    **kwargs,
)

Downloads raw search results from the TJDFT jurisprudence search (using requests). Returns a list of raw results (JSON).

Parameters

Name Type Description Default
pesquisa Optional[str] Search term. query 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.tjdft.client.TJDFTScraper.cjsg_parse(resultados_brutos)

Extracts structured information from the raw TJDFT search results. Returns all fields present in each item.

cpopg

courts.tjdft.client.TJDFTScraper.cpopg(id_cnj)

Stub for compatibility with BaseScraper.

cposg

courts.tjdft.client.TJDFTScraper.cposg(id_cnj)

Stub for compatibility with BaseScraper.