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(query, paginas=0)Searches for TJDFT jurisprudence in a simplified way (download + parse). Returns a ready-to-analyze DataFrame.
cjsg_download
courts.tjdft.client.TJDFTScraper.cjsg_download(
query,
paginas=0,
sinonimos=True,
espelho=True,
inteiro_teor=False,
quantidade_por_pagina=10,
)Downloads raw search results from the TJDFT jurisprudence search (using requests). Returns a list of raw results (JSON).
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.