Skip to content

Instantly share code, notes, and snippets.

@chilts
Created October 30, 2013 09:27
Show Gist options
  • Select an option

  • Save chilts/7229605 to your computer and use it in GitHub Desktop.

Select an option

Save chilts/7229605 to your computer and use it in GitHub Desktop.

Revisions

  1. chilts created this gist Oct 30, 2013.
    10 changes: 10 additions & 0 deletions alexa.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    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);
    })
    ;