Scraper for jurisprudence searches on the TJPE website.
cjsg
Yes
cpopg
No
cposg
No
Basic search
import juscraper as jus
tjpe = jus.scraper('tjpe' )
df = tjpe.cjsg('dano moral' , paginas= 1 )
print (df.shape)
df.head(3 )
Downloading TJPE Acórdãos: 0%| | 0/1 [00:00<?, ?it/s]Downloading TJPE Acórdãos: 100%|██████████| 1/1 [00:00<?, ?it/s]
0
Apelação Cível 417348-4 0007413-46.2014.8.17.0480
Apelação Cível
Seguro
LUCIANO DE CASTRO CAMPOS
1ª Câmara Regional de Caruaru - 1ª Turma
2023-10-31
2023-11-22
DIREITO CIVIL. AÇÃO DE COBRANÇA DE SEGURO C/C ...
1ª Câmara Regional de Caruaru - 1ª Turma Apela...
FISICO
https://www.tjpe.jus.br/consultajurisprudencia...
1
Apelação Cível 541063-3 0009194-74.2012.8.17.0480
Apelação Cível
Indenização por Dano Material
LUCIANO DE CASTRO CAMPOS
1ª Câmara Regional de Caruaru - 1ª Turma
2023-11-14
2023-11-22
DIREITO DO CONSUMIDOR. APELAÇÃO CÍVEL. AÇÃO DE...
1ª Câmara Regional de Caruaru - 1ª Turma Apela...
FISICO
https://www.tjpe.jus.br/consultajurisprudencia...
2
Apelação Cível 549004-6 0000859-52.2012.8.17.1390
Apelação Cível
Acidente de Trânsito
LUCIANO DE CASTRO CAMPOS
1ª Câmara Regional de Caruaru - 1ª Turma
2023-10-31
2023-11-22
APELAÇÃO CÍVEL. ACIDENTE DE TRÂNSITO. AÇÃO DE ...
Gabinete do Des. Luciano de Castro Campos PRIM...
FISICO
https://www.tjpe.jus.br/consultajurisprudencia...
Available columns
['processo',
'classe_cnj',
'assunto_cnj',
'relator',
'orgao_julgador',
'data_julgamento',
'data_publicacao',
'ementa',
'acordao',
'meio_tramitacao',
'url_inteiro_teor']
Preview ementa
print (df['ementa' ].iloc[0 ][:300 ])
DIREITO CIVIL. AÇÃO DE COBRANÇA DE SEGURO C/C INDENIZAÇÃO POR DANO MORAL. INSTITUIÇÃO DE INDENIZAÇÃO SECURITÁRIA EM FAVOR DE CONCUBINA COMO BENEFICIÁRIA. FALHA NO DEVER DE CUIDADO DA SEGURADORA. INDENIZAÇÃO NOS TERMOS DO ART. 792 DO CÓDIGO CIVIL. DANO MORAL NÃO CONFIGURADO. AUSÊNCIA AFRONTA AO DIREI
Using date filters
# Date filters use DD/MM/YYYY format
df_filtered = tjpe.cjsg(
'direito' ,
data_julgamento_inicio= '01/01/2024' ,
data_julgamento_fim= '30/06/2024' ,
paginas= 1 ,
)
print (df_filtered.shape)
df_filtered[['processo' , 'relator' , 'data_julgamento' ]].head(3 )
Downloading TJPE Acórdãos: 0%| | 0/1 [00:00<?, ?it/s]Downloading TJPE Acórdãos: 100%|██████████| 1/1 [00:00<?, ?it/s]
0
Recurso Inominado Cível 0001936-84.2019.8.17.8234
ABELARDO TADEU DA SILVA SANTOS
2024-06-30
1
Recurso Inominado Cível 0002479-24.2018.8.17.8234
ABELARDO TADEU DA SILVA SANTOS
2024-06-30
2
Recurso Inominado Cível 0000421-48.2018.8.17.8234
ABELARDO TADEU DA SILVA SANTOS
2024-06-30
Download and parse separately
# Download raw HTML pages
raw = tjpe.cjsg_download('direito' , paginas= 1 )
print (f"Downloaded { len (raw)} page(s)" )
print (f"Raw HTML size: { len (raw[0 ])} bytes" )
# Parse into DataFrame
df_parsed = tjpe.cjsg_parse(raw)
print (f"Parsed { len (df_parsed)} results" )
df_parsed.head(3 )
Downloading TJPE Acórdãos: 0%| | 0/1 [00:00<?, ?it/s]Downloading TJPE Acórdãos: 100%|██████████| 1/1 [00:00<?, ?it/s]
Downloaded 1 page(s)
Raw HTML size: 117705 bytes
Parsed 5 results
0
Apelação Cível 572014-3 0062519-19.2007.8.17.0001
Apelação Cível
Inventário e Partilha
Francisco Eduardo Goncalves Sertorio Canto
3ª Câmara Cível
2024-02-29
2024-03-22
PROCESSUAL CIVIL. INVENTÁRIO. PRÉVIO ACORDO DE...
ÓRGÃO JULGADOR: TERCEIRA CÂMARA CÍVEL TIPO: AP...
FISICO
https://www.tjpe.jus.br/consultajurisprudencia...
1
Apelação Cível 574533-1 0002563-02.2015.8.17.1130
Apelação Cível
Indenização por Dano Material
Paulo Romero de Sá Araújo
2ª Câmara de Direito Público
2024-02-29
2024-03-14
DIREITO CIVIL E PROCESSUAL CIVIL. APELAÇÃO CÍV...
Apelação Cível n° 0574533-1 Apelante: Silvio R...
FISICO
https://www.tjpe.jus.br/consultajurisprudencia...
2
Apelação Criminal 559338-0 0001516-20.2018.8.1...
Apelação Criminal
Tráfico de Drogas e Condutas Afins
Cláudio Jean Nogueira Virgínio
3ª Câmara Criminal
2023-11-29
2024-03-01
PENAL. PROCESSUAL PENAL. TRÁFICO DE ENTORPECEN...
APELAÇÃO Nº: 0001516-20.2018.8.17.0990 (055933...
FISICO
https://www.tjpe.jus.br/consultajurisprudencia...