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.42 kB
import ScrappedAndamento from "../data-structures/ScrappedAndamento"; import AndamentosScrapper from "./AndamentosScrapper"; declare class Pje1gTjbaAndamentosScrapper extends AndamentosScrapper { protected doc: Document; protected divTimeline: HTMLElement | null; constructor(doc: Document); fetchAndamentosInfo(): Promise<ScrappedAndamento[] | undefined>; protected loadPageCheckpoints(): void; protected getAndamentos(): Promise<ScrappedAndamento[] | undefined>; protected getDocumentInfo(bodyBoxDiv: HTMLElement, andamentoType: string): Promise<(string | boolean)[]>; protected getIdFromDocString(docString: string): string; protected getNameFromDocString(docString: string): string; protected getDate(mediaDiv: HTMLElement, horaAndamento: string): Date; protected findDateSibling(mediaDiv: HTMLElement): HTMLElement; protected getNome(bodyBoxDiv: HTMLElement, filename?: string): string; protected isCancelado(bodyBoxDiv: HTMLElement): boolean; protected getDocumentTextContentIfExists(documentAnchor: HTMLAnchorElement): Promise<string>; protected isPdf(documentAnchor: HTMLAnchorElement): boolean; protected waitPageLoad(iframeDocSelector: string): Promise<Document>; protected isPjeDocumentLandingPageBug(htmlDoc: Document): boolean; protected getDocumentTextContent(contentDoc: Document): string; } export default Pje1gTjbaAndamentosScrapper;