Last active
January 3, 2016 12:19
-
-
Save abhinavsharma/8461652 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
(function() { | |
var request = require('request'); | |
var count = 0; | |
var FREQ = 1000; | |
setInterval( | |
function() { | |
request.post( | |
'http://suitsoncampus.com/nominate/saved', { | |
form: { | |
'school': 'Carnegie Mellon University' | |
} | |
}, function(error, response, body) { | |
if (response.statusCode === 200) { | |
console.log(++count + ' votes'); | |
} | |
}); | |
}, FREQ | |
); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment