Skip to content

Instantly share code, notes, and snippets.

@shawnmclean
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shawnmclean/a1e039379ed0907f85d0 to your computer and use it in GitHub Desktop.
Save shawnmclean/a1e039379ed0907f85d0 to your computer and use it in GitHub Desktop.
Free Vote Script for Jamaica Observer Voting System
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