Python Mechanize select a form with no name

Posted by mvid on Stack Overflow See other posts from Stack Overflow or by mvid
Published on 2010-04-06T04:01:24Z Indexed on 2010/04/06 4:03 UTC
Read the original article Hit count: 375

Filed under:
|
|
|

I am attempting to have mechanize select a form from a page, but the form in question has no "name" attribute in the html. What should I do? when I try to use

br.select_form(name = "")

i get errors that no form is declared with that name, and the function requires a name input. There is only one form on the page, is there some other way I can select that form?

© Stack Overflow or respective owner

Related posts about python

Related posts about mechanize