Last active
August 29, 2015 14:27
-
-
Save shawnmclean/a1e039379ed0907f85d0 to your computer and use it in GitHub Desktop.
Free Vote Script for Jamaica Observer Voting System
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 request = require('request'); | |
var lineReader = require('line-reader'); | |
var selection = 1; // <- the id of the person to vote for | |
lineReader.eachLine('proxy.txt', function(line, last) { | |
request.post({ | |
uri: 'http://jol.jamaicaobserver.com/mogul_poll/add_vote.php?the_vote='+selection, | |
proxy: 'http://'+ line | |
}, function (err, resp, body) {}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment