Developing a BOT for polls with wordpress plugin Polldaddy

Asked

Viewed 270 times

1

I tried to follow: https://github.com/dado3212/PollDaddyHack

import requests

dados ={"poll_id" : "9484127",
"answer_id" :"43276282",
"number_of_votes" : "1000"}



url = "https://polldaddy.com/poll/9484127/"

#while True:
requests.post(url, data=dados)

But still not voting and no mistakes!

  • I tested https://github.com/dado3212/PollDaddyHack . And it no longer works on python3 or 2 . But to test it would copy it to a file and change the last parameters of the file

1 answer

4


I believe that the correct use of this module will be:

from vote import vote

poll_id = 9484127
answer_id = 43276282
number_of_votes = 1000

vote(poll_id, answer_id, number_of_votes)
  • There is a vote python library?

  • 2

    @Edmail It does not exist by default but if you press the one you have indicated it will exist. Since it was not declared in Pypi, you will have to manually load and place the "vote.py" file in the same directory as your script.

  • I didn’t understand: "vote.py will be my program?

  • I am very beginner. Sorry ignorance: I don’t understand: "vote.py will be my program?

  • 2

    @Edmail vote.py is the module file that you have indicated is hosted on github (https://github.com/dado3212/PollDaddyHack)

  • 1

    Warning (from warnings module): File "/usr/lib/python2.7/dist-Packages/urllib3/connectionpool.py", line 770 Insecurerequestwarning) Insecurerequestwarning: Unverified HTTPS request is being made. Adding Certificate Verification is strongly advised. Is it possible to correct? Thank you!

  • worked. Thank you very much!

  • I just wish I knew how to get the Warning up!

  • 2

    @Eds To remove the warning you can run the script as follows: python -W ignore script.py

  • thanks. But how "Adding Certificate Verification is strongly advised" to resolve Warning without ignoring it? Is it possible?

  • 2

    @Eds The warning comes from the module itself, you would have to edit the file itself "vote.py", I believe.

Show 6 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.