Uses a headless browser to visit a poll website and inject JavaScript code to perform the desired poll voting.
- Uses Nightmare.js 😱 to generate legit traffic on the poll website ✅
- Supports Bluebird 🐦 promises ✅
npm install pollmommy -g
Parameter | How to get it |
---|---|
URL |
The poll's website URL, Polldaddy's poll website or the embedded poll website. |
Poll id |
The Polldaddy's poll identifier, inspect the website HTML code and search for this pattern PDI_containerNUMBER - NUMBER will be the id. |
Poll option id |
The Polldaddy's poll option identifier, pick the desired option and inspect the website HTML code and search for this pattern PDI_answerNUMBER - NUMBER will be the id. |
pollmommy http://bbc.co.uk/should-trump-be-fired.html 324345 12939
const Pollmommy = require('pollmommy')
const pollmommy = new Pollmommy()
pollmommy.vote('http://bbc.co.uk/should-trump-be-fired.html', 324345, 12939)
.then(() => console.log('Voted successfully!'))
.catch((error) => console.error(error.message))