brazilian-courts-scrappers
Version:
Data scrapper para fazer raspagem de dados de processos judiciais dos portais de tribunais do Brasil.
27 lines (26 loc) • 1.25 kB
TypeScript
import ScrappedParte from "../data-structures/ScrappedParte";
import PartesScrapper, { PartesReturn } from "./PartesScrapper";
import { tiposParte } from "../utils";
type ParteCpfCnpjReturn = {
dontHaveCpfCnpj: boolean;
noCpfCnpjReason: string;
cpf: string;
cnpj: string;
};
export default class Pje1gTjbaParteScrapper extends PartesScrapper {
protected macroContainer: Document | HTMLElement;
protected static PJE1GTJBA_OAB_REGEX: RegExp;
protected divPoloAtivoTbody: HTMLElement;
protected divPoloPassivoTbody: HTMLElement;
constructor(macroContainer: Document | HTMLElement);
fetchParticipantesInfo(): PartesReturn | undefined;
protected loadPageCheckpoints(): void;
protected getPartes(): PartesReturn;
protected getPartesWithoutEnderecos(tbody: HTMLElement, tipoDeParte: tiposParte): ScrappedParte[];
protected getNameFromPje1gTjbaParteString(parteStr: string): string;
protected getCpfCnpjFromPje1gTjbaParteString(parteStr: string): string;
protected getOabFromPje1gTjbaParteString(parteStr: string): string;
protected getParteCpfCnpjFromString(cpfCnpj: string): ParteCpfCnpjReturn;
protected getParteAdvogados(parteWrapperTr: HTMLElement): ScrappedParte[];
}
export {};