Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python, parse html form

Tags:

python

html

forms

how I can get input from html forms on other sites? I want it to return a dictionary such as:

form = [('name' = 'somename', 'type' = 'text', 'value':''},{' name' = 'somename', 'type' = 'submit', 'value': ' submit ').

Sorry for my English.

like image 565
Artyom Avatar asked Nov 25 '25 18:11

Artyom


1 Answers

you probably wont be able to retrieve form data from other users on other sites. If you wish to use a script to send data to a form, mechanize is one tool that makes this quite easy.

like image 89
Tim McNamara Avatar answered Nov 28 '25 08:11

Tim McNamara



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!