courts.trf6.client.TRF6Scraper

courts.trf6.client.TRF6Scraper(
    verbose=0,
    download_path=None,
    sleep_time=1.0,
    max_captcha_attempts=3,
    **kwargs,
)

TRF6 eproc consulta pública (1º grau).

Methods

Name Description
cpopg High-level cpopg lookup: download + parse.
cpopg_download Download the detail HTML for each id_cnj.
cpopg_parse Parse a list of detail HTMLs into a one-row-per-process DataFrame.

cpopg

courts.trf6.client.TRF6Scraper.cpopg(id_cnj, **kwargs)

High-level cpopg lookup: download + parse.

Accepts a single CNJ or a list. Returns a DataFrame with one row per process; columns include id_cnj, processo, classe, data_autuacao, situacao, magistrado, orgao_julgador, assuntos, polo_ativo, polo_passivo, mpf, perito and movimentacoes.

cpopg_download

courts.trf6.client.TRF6Scraper.cpopg_download(id_cnj, **kwargs)

Download the detail HTML for each id_cnj.

Returns a list aligned with the input order. None entries indicate processes the public consultation could not return — typically sigilo or invalid CNJ. Captcha-solver failures (RuntimeError) propagate.

cpopg_parse

courts.trf6.client.TRF6Scraper.cpopg_parse(htmls, id_cnj_list)

Parse a list of detail HTMLs into a one-row-per-process DataFrame.

Rows for None entries (process not found) carry id_cnj plus None in every other column, so callers can still distinguish “looked up but missing” from “never tried”.