Hack Forums
[Python] Submitting an HTML form. - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Python] Submitting an HTML form. (/showthread.php?tid=5166659)



Submitting an HTML form. - 44krieger - Feb 11, 2016

I am trying to make a small python programm that edits the diffrent inputs of a form and then submits them.
I tried many things using BeautifulSoup and Requests. (Also tried Mechanize, but could not install it properly.)

I could not get anything to work.

Would be awesome if you could make some examples or give me a good reference. I could not find anything that i could understand by googling.
Maybe i am approaching this completly wrong anyway. I am still new to python.

Thanks.


* - lockhead - Feb 11, 2016

What exactly didn't work? Installation, something Python related, selecting the right form,... ?
If want it super easy I'd have a look at Selenium. It's very easy to use but might be a bit heavyweight if you're going for speed or efficiency at all.


* - SIM-1866423 - Feb 11, 2016

Can you share page which is you trying to post something ?


* - 44krieger - Feb 11, 2016

Thanks a lot to both of you. Am currently not home will answer back tomorrow.


* - Feanor - Feb 13, 2016

please post your code.🙂