UNPKG

brazilian-courts-scrappers

Version:

Data scrapper para fazer raspagem de dados de processos judiciais dos portais de tribunais do Brasil.

24 lines (23 loc) 1.44 kB
import ScrappedAndamento from "../data-structures/ScrappedAndamento"; import AndamentosScrapper from "./AndamentosScrapper"; type AndamentoType = "documento" | "movimentação"; declare class Pje1gTjbaAndamentosScrapper extends AndamentosScrapper { protected doc: Document; protected lisAndamentos: NodeListOf<HTMLElement>; constructor(doc: Document); fetchAndamentosInfo(): Promise<ScrappedAndamento[] | undefined>; protected loadPageCheckpoints(): Promise<void>; protected expandMovimentos(): Promise<void>; protected getAndamentos(): Promise<ScrappedAndamento[] | undefined>; protected getDocumentInfo(elMatCard: HTMLElement, andamentoType: AndamentoType): Promise<(string | boolean)[]>; protected getDocName(elMatCard: HTMLElement): string; protected getDocContent(elMatCard: HTMLElement, isCancelado: boolean): Promise<string>; protected getDocumentTextContentIfExists(documentAnchor: HTMLAnchorElement): Promise<string>; protected isPdf(docAreaContainer: HTMLElement): boolean; protected getElementInnerText(contentElement: HTMLElement): string; protected getDate(li: HTMLElement, horaAndamento: string): Date; protected findDateString(li: Element): string; protected getDateFromPje1gTrt5AndamentoDateString(dateStr: string, timeStr?: string): Date; protected getNome(elMatCard: HTMLElement, docName?: string): string; } export default Pje1gTjbaAndamentosScrapper;