Skip to content

Instantly share code, notes, and snippets.

Forked from chilts/alexa.js
Created Sep 30, 2017
What would you like to do?
Getting the Alexa top 1 million sites directly from the server, unzipping it, parsing the csv and getting each line as an array.
var request = require('request');
var unzip = require('unzip');
var csv2 = require('csv2');
.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