Added bash CLI shorthand. Properly setting parameters in site results. Removed obsolete URL restriction from Reality Kings scraper.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user