See the following code :
br = mechanize.Browser() br.open(\'https://www.example.com/\') for form in br.forms(): visualize(form)
is it possibl