Skip to content

Instantly share code, notes, and snippets.

@peytonm
peytonm / scrape_denver_legislation.js
Created March 7, 2015 21:36
Scraping Denver Legislation with CasperJS
var casper = require("casper").create();
var x = require('casper').selectXPath;
var fs = require("fs");
// Trying to scrape everything doesn't seem to work; eventually the page
// just goes blank. It makes sense to scrape by year anway--that way
// each year can go in a separate JSON file.
var years = [2010, 2011, 2013, 2014];
var ids = [];