@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
19 lines (18 loc) • 411 B
TypeScript
export interface HtmlFetchResponse {
/**
* HTML content of the fetched page
*/
data: string;
/**
* HTTP response headers as key-value pairs
*/
headers: Record<string, string>;
/**
* HTTP status code (e.g., 200, 404, 500)
*/
status: number;
/**
* HTTP status text (e.g., 'OK', 'Not Found', 'Internal Server Error')
*/
statusText: string;
}