website-scrap-engine
Version:
Configurable website scraper in typescript
11 lines • 747 B
TypeScript
import type { DownloadResource } from './types.js';
import type { StaticDownloadOptions } from '../options.js';
import type { ResourceBody, ResourceEncoding } from '../resource.js';
import { ResourceType } from '../resource.js';
import type { PipelineExecutor } from './pipeline-executor.js';
export declare function getResourceBodyFromHtml(res: DownloadResource & {
type: ResourceType.Html;
}, options: StaticDownloadOptions): ResourceBody;
export declare function redirectHtml(relativePath: string, encoding?: ResourceEncoding): string;
export declare function saveHtmlToDisk(res: DownloadResource, options: StaticDownloadOptions, pipeline: PipelineExecutor): Promise<DownloadResource | void>;
//# sourceMappingURL=save-html-to-disk.d.ts.map