16

Question:

Hi. I am a beginner trying to learn Python, and for one of my first projects I want to write a script that will fill out a survey automatically for me. I am familiar with coding, and I have most of the code written to solve this problem. What I am struggling is to write a method that will hit button #1 in question #1, or that will push any given button. One way I've realized I can do this, is perhaps by writing a script to press tab-> up-> down-> tab-> up -> down in the order needed to answer all of the questions.

Here is an image of what the survey looks like (CSS was disable for clarity). https://i.sstatic.net/texeA.jpg

What is one way to go about writing a method to push a radio button?


[Disclaimer]: I have checked out the following questions but they were of no use to me in my current situation:

2
  • Do you mean like a bot? Try AutoPy. Commented Mar 8, 2015 at 21:40
  • Selenium - seleniumhq.org Commented Mar 8, 2015 at 21:43

1 Answer 1

22

There are Python libraries and tools for automatizing browser actions. StackOverflow.com is not a place to ask for an recommendation for such a tool and thus moderators will close this question (SO is usually asking a help for particular problem, not for broad help and tutoriing requests). However here are some starting points for you

For installing Python packages please refer to official package installation tutorial.

Sign up to request clarification or add additional context in comments.

3 Comments

Thank you very much. I'm still struggling with asking the right kinds of SO questions, and the feedback is definitely useful. It's tough to get started on this site but people like you are helping push me in the right direction!
For tutoring I recommend ##python-friendly IRC channel on Freenode. Web chat: webchat.freenode.net/?channels=##python-friendly - please be prepared to spend at least two hours to receive an answer (depending on the global office hours)
@josh-desmond The truth is that people ask questions like yours all the time on StackOverflow. There's nothing incompatible with your question; it wasn't closed after 2+ years; it answered my question; and the responder benefited -- reputation wise -- over time from replying to it. Win/Win. No problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.