Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created November 7, 2013 18:00
Show Gist options
  • Save tmcw/7359019 to your computer and use it in GitHub Desktop.
Save tmcw/7359019 to your computer and use it in GitHub Desktop.
var request = require('request'),
fs = require('fs');
[list of places].forEach(function(p) {
request(url, function() {
fs.writeFileSync('foo.json', JSON.stringify(p));
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment