Re: Automatically populate and submit HTML Forms

2005-05-26 Thread rbt
Grant Edwards wrote: > On 2005-05-25, rbt <[EMAIL PROTECTED]> wrote: > >>How can I make a python client script connect to a Web server and >>automatically populate form fields and then submit the form? >> >>For example, say I wanted to check and see if 1924 was a leap year... >>how would I popul

Re: Automatically populate and submit HTML Forms

2005-05-26 Thread Grant Edwards
On 2005-05-26, Grant Edwards <[EMAIL PROTECTED]> wrote: >> How can I make a python client script connect to a Web server and >> automatically populate form fields and then submit the form? > Just use urllib() and pass the form data to the urlopen() > method. If given data, it will generate a "P

Re: Automatically populate and submit HTML Forms

2005-05-26 Thread Grant Edwards
On 2005-05-25, rbt <[EMAIL PROTECTED]> wrote: > How can I make a python client script connect to a Web server and > automatically populate form fields and then submit the form? > > For example, say I wanted to check and see if 1924 was a leap year... > how would I populate the 'year' field and th

Re: Automatically populate and submit HTML Forms

2005-05-26 Thread erinhouston
These two blog entries might be of help to you. http://www.ishpeck.net/index.php?P=b1115239318ishpeck second half is at http://www.ishpeck.net/index.php?P=b1115225809ishpeck alex23 wrote: > Hey rbt, > > You should take a look at mechanize: > http://wwwsearch.sourceforge.net/mechanize/ > > One of

Re: Automatically populate and submit HTML Forms

2005-05-25 Thread alex23
Hey rbt, You should take a look at mechanize: http://wwwsearch.sourceforge.net/mechanize/ One of its listed features is 'Easy HTML form filling, using ClientForm interface'. A more recent option which came up on this group a few days ago is twill: http://www.idyll.org/~t/www-tools/twill.html tw

Automatically populate and submit HTML Forms

2005-05-25 Thread rbt
How can I make a python client script connect to a Web server and automatically populate form fields and then submit the form? For example, say I wanted to check and see if 1924 was a leap year... how would I populate the 'year' field and then submit it for processing? I have no control of the