source-scraper-core
Version:
Core files for the SourceScraper-Project
13 lines • 601 B
JavaScript
;
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