Uses a headless browser to visit a poll website and inject JavaScript code to perform the desired poll voting.
npm install pollmommy -g
Parameter | Description | How to get it |
---|---|---|
Poll 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 -u http://bbc.co.uk/should-trump-be-fired.html -i 324345 -o 12939
Create a pollmommy instance and vote to get Trump fired
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))
You can contribute either with code (e.g., new features, bug fixes and documentation) or by donating 5 EUR. You can read the contributing guidelines for instructions on how to contribute with code.
All donation proceedings will go to the Sverige för UNHCR, a swedish partner of the UNHCR - The UN Refugee Agency, a global organisation dedicated to saving lives, protecting rights and building a better future for refugees, forcibly displaced communities and stateless people.
Read the license for permissions and limitations.