GithubHelp home page GithubHelp logo

hfreire / pollmommy Goto Github PK

View Code? Open in Web Editor NEW
37.0 4.0 9.0 7.73 MB

⭐️ Hack your 🙈 vote out of 📈 Polldaddy surveys - used by 💰 BBC, Microsoft, Forbes, Pfizer, IBM

License: MIT License

JavaScript 100.00%
polldaddy-surveys poll-website poll hack nightmarejs voting vote-application hacking polldaddy github-actions

pollmommy's Introduction

⭐ Hack your 🙈 vote out of 📈 Polldaddy surveys - used by 💰 BBC, Microsoft, Forbes, Pfizer, IBM

Coverage Status Known Vulnerabilities Version Downloads

Uses a headless browser to visit a poll website and inject JavaScript code to perform the desired poll voting.

Features

  • Uses Nightmare 😱 to generate legit traffic on the poll website ✅
  • Supports Bluebird 🐦 promises ✅

How to install

npm install pollmommy -g

How to use

Fetch the required parameters

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.

Use it in your terminal

pollmommy -u http://bbc.co.uk/should-trump-be-fired.html -i 324345 -o 12939

Use it in your app

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))

How to contribute

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.

Used by

License

Read the license for permissions and limitations.

pollmommy's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar greenkeeper[bot] avatar greenkeeperio-bot avatar hfreire avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pollmommy's Issues

Error when installing on macOS

I'm getting the following error when trying to install on my M1 MacBook mini. I'm assuming it's due to it being an M1-based system, but I'm not sure how to proceed from here.

1057 error code 1
1058 error path /opt/homebrew/lib/node_modules/pollmommy/node_modules/electron
1059 error command failed
1060 error command sh -c node install.js
1061 error Downloading electron-v2.0.18-darwin-arm64.zip
1061 error [>                                            ] 0.0% (0 B/s)
1061 error �[1000D�[0K�[1A�[1000D�[0K�[1A�[1000D�[0KDownloading electron-v2.0.18-darwin-arm64.zip
1061 error Error: GET https://github.com/electron/electron/releases/download/v2.0.18/electron-v2.0.18-darwin-arm64.zip returned 404
1062 error /opt/homebrew/lib/node_modules/pollmommy/node_modules/electron/install.js:54
1062 error   throw err
1062 error   ^
1062 error
1062 error Error: Failed to find Electron v2.0.18 for darwin-arm64 at https://github.com/electron/electron/releases/download/v2.0.18/electron-v2.0.18-darwin-arm64.zip
1062 error     at Request.<anonymous> (/opt/homebrew/lib/node_modules/pollmommy/node_modules/nugget/index.js:169:61)
1062 error     at Request.emit (node:events:390:28)
1062 error     at Request.onRequestResponse (/opt/homebrew/lib/node_modules/pollmommy/node_modules/request/request.js:1059:10)
1062 error     at ClientRequest.emit (node:events:390:28)
1062 error     at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:623:27)
1062 error     at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
1062 error     at TLSSocket.socketOnData (node:_http_client:487:22)
1062 error     at TLSSocket.emit (node:events:390:28)
1062 error     at addChunk (node:internal/streams/readable:324:12)
1062 error     at readableAddChunk (node:internal/streams/readable:297:9)
1062 error
1062 error Node.js v17.0.1
1063 verbose exit 1

Can we get a start.js or other callable script?

I'm currently trying to build the pollmommy functionality into an AppleScript for a simple macOS application for a group of people, though there is no 'start.js' or similar to call from the script. Is there any chance that could be added?

The automated release is failing 🚨

🚨 The automated release from the master branch failed. 🚨

I recommend you give this issue a high priority, so other packages depending on you can benefit from your bug fixes and new features again.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can fix this 💪.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here are some links that can help you:

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


Invalid npm token.

The npm token configured in the NPM_TOKEN environment variable must be a valid token allowing to publish to the registry https://registry.npmjs.org/.

If you are using Two Factor Authentication for your account, set its level to "Authorization only" in your account settings. semantic-release cannot publish with the default "
Authorization and writes" level.

Please make sure to set the NPM_TOKEN environment variable in your CI with the exact value of the npm token.


Good luck with your project ✨

Your semantic-release bot 📦🚀

An in-range update of eslint-config-standard is breaking the build 🚨

Version 7.0.2 of eslint-config-standard just got published.

Branch Build failing 🚨
Dependency eslint-config-standard
Current Version 7.0.1
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As eslint-config-standard is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this 💪


Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details
Commits

The new version differs by 2 commits .

  • d75816c 7.0.2
  • eb9b41f Relax rule: Allow tagged template string expressions (no-unused-expressions)

See the full diff.

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Using HTTP(S) Proxys?

Hi,

Is there a way to set a http proxy?
Would be perfect for the _options field.

Thanks

Node 8 causes postinstall error

Love the idea of this npm module :P but whenever I try and install globally on Ubuntu I run into this error.

If you even try running it on runkit the same thing happens :/

Don't know how to fix it.

Can't Install on Windows 10

Using either GitBash or Windows CMD console

$>npm install --save pollmommy
npm WARN Error: EPERM: operation not permitted, rmdir 'C:\Development\WebDev\BrowserScript\node_modules\@types'
npm WARN  { Error: EPERM: operation not permitted, rmdir 'C:\Development\WebDev\BrowserScript\node_modules\@types'
npm WARN   stack: 'Error: EPERM: operation not permitted, rmdir \'C:\\Development\\WebDev\\BrowserScript\\node_modules\\@types\'',
npm WARN   errno: -4048,
npm WARN   code: 'EPERM',
npm WARN   syscall: 'rmdir',
npm WARN   path: 'C:\\Development\\WebDev\\BrowserScript\\node_modules\\@types' }
npm ERR! path C:\Development\WebDev\BrowserScript\node_modules\pollmommy\bin\app.js
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod 'C:\Development\WebDev\BrowserScript\node_modules\pollmommy\bin\app.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

The automated release is failing 🚨

🚨 The automated release from the master branch failed. 🚨

I recommend you give this issue a high priority, so other packages depending on you could benefit from your bug fixes and new features.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can resolve this 💪.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here is some links that can help you:

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


Invalid npm token.

The npm token configured in the NPM_TOKEN environment variable must be a valid token allowing to publish to the registry https://registry.npmjs.org/.

If you are using Two-Factor Authentication, make configure the auth-only level is supported. semantic-release cannot publish with the default auth-and-writes level.

Please make sure to set the NPM_TOKEN environment variable in your CI with the exact value of the npm token.


Good luck with your project ✨

Your semantic-release bot 📦🚀

Version 10 of node.js has been released

Version 10 of Node.js (code name Dubnium) has been released! 🎊

To see what happens to your code in Node.js 10, Greenkeeper has created a branch with the following changes:

  • Added the new Node.js version to your .travis.yml
  • The new Node.js version is in-range for the engines in 1 of your package.json files, so that was left alone

If you’re interested in upgrading this repo to Node.js 10, you can open a PR with these changes. Please note that this issue is just intended as a friendly reminder and the PR as a possible starting point for getting your code running on Node.js 10.

More information on this issue

Greenkeeper has checked the engines key in any package.json file, the .nvmrc file, and the .travis.yml file, if present.

  • engines was only updated if it defined a single version, not a range.
  • .nvmrc was updated to Node.js 10
  • .travis.yml was only changed if there was a root-level node_js that didn’t already include Node.js 10, such as node or lts/*. In this case, the new version was appended to the list. We didn’t touch job or matrix configurations because these tend to be quite specific and complex, and it’s difficult to infer what the intentions were.

For many simpler .travis.yml configurations, this PR should suffice as-is, but depending on what you’re doing it may require additional work or may not be applicable at all. We’re also aware that you may have good reasons to not update to Node.js 10, which is why this was sent as an issue and not a pull request. Feel free to delete it without comment, I’m a humble robot and won’t feel rejected 🤖


FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Not working anymore in windows with Node.js

I used it for a few days and was working, then suddenly it stopped sending in votes. I mean, the message on the Node.js window is Vote Successfully but the counting of votes on the actual poll does not increase at all. Actually for a couple of days my impression was that the number of votes I was sending in was counted to the opponent, because when I was stopping the script the number of votes of the opponent was slowing down suddenly.
Now it doesn't work anymore either way. Is there a way to check what's wrong with it?

Cant install PollMommy

Hi there,

I am trying to install pollmommy without success... I run linux (ubuntu 21.04)

the log I get back is the following

npm ERR! path /home/username/.nvm/versions/node/v8.9.0/lib/node_modules/pollmommy/bin/app.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/home/username/.nvm/versions/node/v8.9.0/lib/node_modules/pollmommy/bin/app.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/username/.npm/_logs/2021-09-30T16_04_17_555Z-debug.log

I have tried installing it on Node v8 and v12 and with npm v5.8.0 and v7. What am I doing wrong here?

Thanks for your time!
Kind regards
Pieter

Poll not avaiable

When trying to use it it just gives an error saying "Poll not avaiable"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.