Added bash CLI shorthand. Properly setting parameters in site results. Removed obsolete URL restriction from Reality Kings scraper.

This commit is contained in:
2019-11-16 23:37:33 +01:00
parent 5c551bade2
commit 2857387441
7 changed files with 13 additions and 15 deletions

View File

@@ -5,13 +5,17 @@ const yargs = require('yargs');
const { argv } = yargs
.command('npm start')
.option('scrape', {
describe: 'Scrape sites and networks defined in configuration',
type: 'boolean',
})
.option('networks', {
describe: 'Networks to scrape (overrides config)',
describe: 'Networks to scrape (overrides configuration)',
type: 'array',
alias: 'network',
})
.option('sites', {
describe: 'Sites to scrape (overrides config)',
describe: 'Sites to scrape (overrides configuration)',
type: 'array',
alias: 'site',
})