Skip to content

Instantly share code, notes, and snippets.

View PhillyCDO's full-sized avatar

Philadelphia Chief Data Officer PhillyCDO

View GitHub Profile
@spara
spara / scraper.js
Created September 27, 2013 14:38
Example node scraper, runs as cronjob every 15 minutes
var request = require('request');
cheerio = require('cheerio');
util = require('util');
http = require('http');
cronJob = require('cron').CronJob;
var data = new Array();
new cronJob('*/15 * * * * *', function(){