Re: How to fill a form

2006-08-17 Thread Justin Ezequiel
Sulsa wrote: > On Tue, 15 Aug 2006 03:37:02 - > Grant Edwards <[EMAIL PROTECTED]> wrote: > > > On 2006-08-15, Sulsa <[EMAIL PROTECTED]> wrote: > > > > > I want to fill only one smiple form so i would like not to use > > > any non standard libraries. > > > > Then just send the HTTP "POST" reques

Re: How to fill a form

2006-08-17 Thread Philippe Martin
Sulsa wrote: > On Tue, 15 Aug 2006 03:37:02 - > Grant Edwards <[EMAIL PROTECTED]> wrote: > >> On 2006-08-15, Sulsa <[EMAIL PROTECTED]> wrote: >> >> > I want to fill only one smiple form so i would like not to use >> > any non standard libraries. >> >> Then just send the HTTP "POST" request

Re: How to fill a form

2006-08-17 Thread John J. Lee
Sulsa <[EMAIL PROTECTED]> writes: > On Tue, 15 Aug 2006 03:37:02 - > Grant Edwards <[EMAIL PROTECTED]> wrote: > > > On 2006-08-15, Sulsa <[EMAIL PROTECTED]> wrote: > > > > > I want to fill only one smiple form so i would like not to use > > > any non standard libraries. > > > > Then just se

Re: How to fill a form

2006-08-14 Thread Yu-Xi Lim
Sulsa wrote: > but i don't know how to post these data if i knew there there would > be no topic. http://docs.python.org/lib/module-urllib.html You want to look at urlopen and urlencode. But if you mean you don't know what fields and data to use, then you need a HTML reference, not a Python one

Re: How to fill a form

2006-08-14 Thread Tom Brown
On Monday 14 August 2006 20:43, Sulsa wrote: > On Tue, 15 Aug 2006 03:37:02 - > > Grant Edwards <[EMAIL PROTECTED]> wrote: > > On 2006-08-15, Sulsa <[EMAIL PROTECTED]> wrote: > > > I want to fill only one smiple form so i would like not to use > > > any non standard libraries. > > > > Then just

Re: How to fill a form

2006-08-14 Thread Sulsa
On Tue, 15 Aug 2006 03:37:02 - Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2006-08-15, Sulsa <[EMAIL PROTECTED]> wrote: > > > I want to fill only one smiple form so i would like not to use > > any non standard libraries. > > Then just send the HTTP "POST" request containing the fields > an

Re: How to fill a form

2006-08-14 Thread Steve Holden
Sulsa wrote: > On Tue, 15 Aug 2006 03:22:40 +0100 > Steve Holden <[EMAIL PROTECTED]> wrote: > > >>I'd recommend you take a look at mechanize, see >> >> http://wwwsearch.sourceforge.net/mechanize/ >> >>and specifically at ClientForm, see >> >> http://wwwsearch.sourceforge.net/ClientForm/ >> >>

Re: How to fill a form

2006-08-14 Thread Grant Edwards
On 2006-08-15, Sulsa <[EMAIL PROTECTED]> wrote: > I want to fill only one smiple form so i would like not to use > any non standard libraries. Then just send the HTTP "POST" request containing the fields and data you want to submit. -- Grant Edwards grante Yow! LB

Re: How to fill a form

2006-08-14 Thread Sulsa
On Tue, 15 Aug 2006 03:22:40 +0100 Steve Holden <[EMAIL PROTECTED]> wrote: > I'd recommend you take a look at mechanize, see > >http://wwwsearch.sourceforge.net/mechanize/ > > and specifically at ClientForm, see > >http://wwwsearch.sourceforge.net/ClientForm/ > > These make it easy to

Re: How to fill a form

2006-08-14 Thread Steve Holden
Sulsa wrote: > I need to fill form from web site, the code for this form looks like > this: > > > > class="post" /> > class="post" /> > > value="" /> > value="Login" /> > > > > I can of course connect to a web site and download the form, i do it > like this: > > import urllib2 > www =

How to fill a form

2006-08-14 Thread Sulsa
I need to fill form from web site, the code for this form looks like this: I can of course connect to a web site and download the form, i do it like this: import urllib2 www = urllib2.urlopen("http://www.site.com/login.php";) form_data= stronka.read() or using httplib: import httplib