From fc52b357a1f865ea4facedad0012704be5dae71f Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 23 Feb 2018 10:39:45 -0500 Subject: Scraper now takes path to config as command-line argument --- scrape.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrape.rb b/scrape.rb index 07faeb6..c70fcff 100644 --- a/scrape.rb +++ b/scrape.rb @@ -3,7 +3,7 @@ require 'nokogiri' require 'open-uri' require 'yaml' -config = YAML.load(open("lunatic/config.yml")) +config = YAML.load(open(ARGV[0])) usernames = config["usernames"] achieves = usernames.map do |username| -- cgit 1.4.1