TJCE - Tribunal de Justiça do Ceará

Scraper for the jurisprudence search (CJSG) of the Tribunal de Justiça do Ceará.

Feature Available
cjsg Yes
cpopg No
cposg No

Available columns

df.columns.tolist()

Preview ementa

print(df['ementa'].iloc[0][:300])

Using filtersYou can filter by judgment date, publication date, decision type, and other fields.

df_filtered = tjce.cjsg(    'direito',    data_julgamento_inicio='01/01/2024',    data_julgamento_fim='30/06/2024',    paginas=1,)print(df_filtered.shape)df_filtered.head(3)

Download and parse separatelyYou can also download the raw HTML files and parse them in a separate step.

import tempfile, ostmp = tempfile.mkdtemp()pasta = tjce.cjsg_download('direito', paginas=1, diretorio=tmp)print('Downloaded to:', pasta)print('Files:', os.listdir(pasta))
df_parsed = tjce.cjsg_parse(pasta)print(df_parsed.shape)df_parsed.head(3)