website-scrap-engine
Version:
Configurable website scraper in typescript
13 lines • 608 B
TypeScript
import { AbstractDownloader } from './main.js';
import type { Resource } from '../resource.js';
import type { DownloadOptions, StaticDownloadOptions } from '../options.js';
export declare class SingleThreadDownloader extends AbstractDownloader {
pathToOptions: string;
readonly init: Promise<void>;
constructor(pathToOptions: string, overrideOptions?: Partial<StaticDownloadOptions> & {
pathToWorker?: string;
});
protected _internalInit(options: DownloadOptions): Promise<void>;
downloadAndProcessResource(res: Resource): Promise<void>;
}
//# sourceMappingURL=single.d.ts.map