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.

Aliases deprecados

  • quantidade_por_pagina -> tamanho_pagina

cjsg_download

courts.tjdft.client.TJDFTScraper.cjsg_download(
    pesquisa=None,
    paginas=None,
    sinonimos=True,
    espelho=True,
    inteiro_teor=False,
    tamanho_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 str | None 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
tamanho_pagina int Results per page (default 10). Aceita quantidade_por_pagina como alias deprecado. 10

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.