Skip to content

Instantly share code, notes, and snippets.

View OffXec's full-sized avatar
🎯
Focusing

OffXec OffXec

🎯
Focusing
View GitHub Profile
@OffXec
OffXec / TorPrivoxyPython.md
Created April 4, 2019 19:46 — forked from DusanMadar/TorPrivoxyPython.md
A step-by-step guide how to use Python with Tor and Privoxy
@OffXec
OffXec / alexa.js
Created March 25, 2019 07:26 — forked from chilts/alexa.js
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');
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);
})
;