brazilian-courts-scrappers
Version:
Data scrapper para fazer raspagem de dados de processos judiciais dos portais de tribunais do Brasil.
44 lines (43 loc) • 2.17 kB
TypeScript
import ScrappedProcesso, { SimpleType } from "../data-structures/ScrappedProcesso";
import ScrappedAndamento from "../data-structures/ScrappedAndamento";
import ScrappedUnidadeJurisdicional from "../data-structures/ScrappedUnidadeJurisdicional";
import ProcessoScrapper from "./ProcessoScrapper";
import { PartesReturn } from "./PartesScrapper";
type JuizoInfo = {
juizo?: ScrappedUnidadeJurisdicional;
nomeJuiz?: string;
};
export default class ProjudiTjbaProcessoScrapper extends ProcessoScrapper {
protected doc: Document;
protected static PROCESSO_HOME_PATH_PART: string;
protected static IGNORE_URLS_CONTAINING: string[];
protected static PROJUDI_EXTENDED_DATE_REGEX: RegExp;
protected divPartes: HTMLElement;
protected divPartesTbody: HTMLElement;
constructor(doc: Document);
fetchProcessoInfo(): Promise<ScrappedProcesso>;
checkProcessoHomepage(): boolean;
protected loadPageCheckpoints(): void;
protected scrappeProcessoInfo(): Promise<ScrappedProcesso>;
protected getNumero(): string | undefined;
protected getNumeroRegional(): null;
protected getUrl(): URL;
protected getDataDistribuicao(): Date | null;
protected getDateFromProjudiTjbaDateString(dateStr: string): Date;
protected getValorDaCausa(): number;
protected getTipoDeAcao(): SimpleType[];
protected getCausaDePedir(): SimpleType[];
protected getSegredoJustica(): boolean;
protected getJuizoInfo(): JuizoInfo;
protected getJuizoJuizString(): string | null;
protected getNumeroProcessoPrincipal(): string | null;
protected getNumerosIncidentes(): string[];
protected getNumerosProcessosRelacionados(): string[];
protected getPartes(): PartesReturn;
protected getAndamentos(): Promise<ScrappedAndamento[] | undefined>;
protected getPedidos(): string[];
protected getAudienciaFutura(andamentos: ScrappedAndamento[]): ScrappedAndamento | null;
protected filterAudienciaConcerningAndamentos(andamentosArray: ScrappedAndamento[]): ScrappedAndamento[];
protected getLastAudienciaOrNullIfCancelled(audienciasUniverse: ScrappedAndamento[]): ScrappedAndamento | null;
}
export {};