On Nov 5, 6:33 pm, alex23 <[EMAIL PROTECTED]> wrote:
> On Nov 6, 8:56 am, scripteaze <[EMAIL PROTECTED]> wrote:
>
> > Is it possible then to have a form with no name and if so, how can i
> > access this form
>
> Hey scripteaze,
>
> I'm not sure about mechanize, but you might have more success using
> another one of the author's modules, 
> ClientForm:http://wwwsearch.sourceforge.net/ClientForm/
>
> from urllib2 import urlopen
> from ClientForm import ParseResponse
>
> response = urlopen("http://wwwsearch.sourceforge.net/ClientForm/
> example.html")
> forms = ParseResponse(response, backwards_compat=False)
> form = forms[0]
>
> As it returns a list of forms, you don't need to have a name to access
> it.
>
> Hope this helps.
>
> -alex23

Thank you very much for your reply. Ill check it out.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to