diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-02-23 10:39:45 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-02-23 10:39:45 -0500 |
commit | fc52b357a1f865ea4facedad0012704be5dae71f (patch) | |
tree | 0196b6ec52d5886b33cf68a0449d1596ae0328f2 | |
parent | 4a8bd6d2bafe9bbbb4c43f06a351fa67b0616699 (diff) | |
download | lunatic-fc52b357a1f865ea4facedad0012704be5dae71f.tar.gz lunatic-fc52b357a1f865ea4facedad0012704be5dae71f.tar.bz2 lunatic-fc52b357a1f865ea4facedad0012704be5dae71f.zip |
Scraper now takes path to config as command-line argument
-rw-r--r-- | scrape.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scrape.rb b/scrape.rb index 07faeb6..c70fcff 100644 --- a/scrape.rb +++ b/scrape.rb | |||
@@ -3,7 +3,7 @@ require 'nokogiri' | |||
3 | require 'open-uri' | 3 | require 'open-uri' |
4 | require 'yaml' | 4 | require 'yaml' |
5 | 5 | ||
6 | config = YAML.load(open("lunatic/config.yml")) | 6 | config = YAML.load(open(ARGV[0])) |
7 | usernames = config["usernames"] | 7 | usernames = config["usernames"] |
8 | 8 | ||
9 | achieves = usernames.map do |username| | 9 | achieves = usernames.map do |username| |