Created
August 26, 2013 22:57
-
-
Save jackmaney/6347665 to your computer and use it in GitHub Desktop.
Getting all starred repos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var https = require("https"); | |
var util = require("util"); | |
var output = ""; | |
https.get("https://relevant.url.to.get.stars" | |
, function(res) { | |
res.on('data', function(d) { | |
output += d; | |
}); | |
res.on('error',function(e){console.error(e);}); | |
res.on('end',function(e){ | |
console.log(JSON.parse(output)); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment