#!/bin/bash
# Launches scraper.js and ensures it is saving to the correct directory
set -o verbose
SCRAPEDIR=$(date +%Y-%m)
SCRAPEURL=http://hypem.com/popular
mkdir $SCRAPEDIR
cd $SCRAPEDIR
casperjs scraper.js --url=$SCRAPEURL > ttjson-`date +%F`
cd -
