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

@@ -7,7 +7,6 @@ const initServer = require('./web/server');
const scrapeSites = require('./scrape-sites');
const scrapeRelease = require('./scrape-release');
async function init() {
if (argv.url) {
await scrapeRelease(argv.url);
@@ -17,7 +16,7 @@ async function init() {
}
if (argv.networks || argv.sites) {
if (argv.scrape || argv.networks || argv.sites) {
await scrapeSites();
knex.destroy();