Skip to content

Instantly share code, notes, and snippets.

@utkarshkukreti
Forked from chilts/alexa.js
Created August 4, 2014 08:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save utkarshkukreti/f4ebad8b80b36174e70b to your computer and use it in GitHub Desktop.
Save utkarshkukreti/f4ebad8b80b36174e70b to your computer and use it in GitHub Desktop.
var request = require('request');
var unzip = require('unzip');
var csv2 = require('csv2');
request.get('http://s3.amazonaws.com/alexa-static/top-1m.csv.zip')
.pipe(unzip.Parse())
.on('entry', function (entry) {
entry.pipe(csv2()).on('data', console.log);
})
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment