UNPKG

source-scraper-core

Version:
13 lines 601 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Scraper_1 = require("./Scraper"); class RunnerScraper extends Scraper_1.Scraper { async scrapFromArgs(args, options) { return this.getScrap(args.url, async () => this.execWithArgs(args, this.getOptions(options))); } async exec(url, options) { return this.runner.run(this.transformUrl ? this.transformUrl(url) : url, async (args) => this.execWithArgs(args, options), options.runnerOptions); } } exports.RunnerScraper = RunnerScraper; //# sourceMappingURL=RunnerScraper.js.map