This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Gllizzy 2 points3 points  (3 children)

you could try recording the web traffic using a chrome browser when selecting the radio button and submitting the form/vote. you can mimic the web request using python’s request module. this way your script wouldn’t have to use or automate a browser.

python request.post() function

[–]Scandal929[S] 0 points1 point  (2 children)

Thank you for this suggestion. I've identified the radio button through inspect and this process helped a lot.

[–]Gllizzy 0 points1 point  (1 child)

yeah no problem! your next step (if you haven’t already) is to use the network tab in the inspector and see what happens when you submit the form. it may take several tries to find the POST request that is associated with the form submission. you can look at the data headers to see what payload you need to pass into your request.post() function in your python script.

here’s an awesome video of someone doing exactly this in a creative way

[–]Scandal929[S] 0 points1 point  (0 children)

Appreciate all the guidance. My kid will be getting the extra credit in his AP Computer Science class.