courts.tjrj.client.TJRJScraper
courts.tjrj.client.TJRJScraper(sleep_time=1.0)Scraper for the Court of Justice of Rio de Janeiro.
The TJRJ search form displays a reCAPTCHA widget, but the backend does not validate it — the entire flow works without solving anything.
Methods
| Name | Description |
|---|---|
| cjsg | Convenience method: download + parse. |
| cjsg_download | Run a TJRJ search and return the raw page payloads (list of dicts). |
| cjsg_parse | Transform raw TJRJ payloads into a DataFrame. |
| cpopg | Stub: first degree case search not implemented for TJRJ. |
| cposg | Stub: second degree case search not implemented for TJRJ. |
cjsg
courts.tjrj.client.TJRJScraper.cjsg(pesquisa=None, paginas=None, **kwargs)Convenience method: download + parse.
cjsg_download
courts.tjrj.client.TJRJScraper.cjsg_download(
pesquisa=None,
paginas=None,
ano_inicio=None,
ano_fim=None,
competencia='1',
origem='1',
tipo_acordao=True,
tipo_monocratica=True,
magistrado_codigo=None,
orgao_codigo=None,
**kwargs,
)Run a TJRJ search and return the raw page payloads (list of dicts).
Parameters
pesquisa : str Free-text search term. Aliases query / termo are accepted. paginas : int, list, range, or None Pages to download (1-based). None fetches every page. ano_inicio, ano_fim : str or int, optional Year range for judgment date. Defaults to blank (no filter). competencia : str "1" Cível / "2" Criminal / "3" ambos. Default "1". origem : str "1" 2º grau (default). tipo_acordao, tipo_monocratica : bool Whether to include acórdãos or monocratic decisions. magistrado_codigo, orgao_codigo : str, optional Comma-separated ids used by the site’s tree selectors.
cjsg_parse
courts.tjrj.client.TJRJScraper.cjsg_parse(raw_pages)Transform raw TJRJ payloads into a DataFrame.
cpopg
courts.tjrj.client.TJRJScraper.cpopg(id_cnj)Stub: first degree case search not implemented for TJRJ.
cposg
courts.tjrj.client.TJRJScraper.cposg(id_cnj)Stub: second degree case search not implemented for TJRJ.