@hanivanrizky/nestjs-html-parser
Version:
A powerful NestJS HTML parsing service with XPath and CSS selector support, proxy configuration, random user agents, and rich response metadata including headers and status codes
48 lines (47 loc) • 1.31 kB
TypeScript
declare class ParseAsUrlPipe {
type: string;
baseUrl?: string;
transform(url: string): string;
}
declare class RegexReplacePipe {
type: string;
baseUrl?: string;
regex: string;
textReplacement: string;
flag: string;
transform(val: string): string;
}
declare class RegexExtractionPipe {
type: string;
baseUrl?: string;
regex: string;
flag: string;
transform(val: string): string;
}
declare class QueryRemoverPipe {
type: string;
baseUrl?: string;
removed: string[];
transform(url: string): string;
}
declare class NumNormalizePipe {
type: string;
baseUrl?: string;
transform(numString: string): number;
}
declare class DateFormatPipe {
type: string;
baseUrl?: string;
locale: string;
format: string;
timezone: string;
transform(dateString: string): number;
}
declare class ThreadIdExtractorPipe {
type: string;
baseUrl?: string;
transform(url: string): string;
}
declare const mappingTransform: (rawPipes: any[], withItsPayload?: any) => any[];
declare function scrapeBmwSgForum(verbose?: boolean): Promise<void>;
export { DateFormatPipe, mappingTransform, NumNormalizePipe, ParseAsUrlPipe, QueryRemoverPipe, RegexExtractionPipe, RegexReplacePipe, scrapeBmwSgForum, ThreadIdExtractorPipe, };