master
Raw Download raw file
1#!/bin/bash
2# Launches scraper.js and ensures it is saving to the correct directory
3set -o verbose
4SCRAPEDIR=$(date +%Y-%m)
5SCRAPEURL=http://hypem.com/popular
6mkdir $SCRAPEDIR
7cd $SCRAPEDIR
8casperjs scraper.js --url=$SCRAPEURL > ttjson-`date +%F`
9cd -