Is it possible to use sockets to login to a website that uses php?

2007-11-19 Thread Lamonte Harris
I need to some how make a script that logs into a website from my desktop
and I can do the rest and grab the information on my on hopefully.  How
would I login to a website using sockets with python?
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Is it possible to use sockets to login to a website that uses php?

2007-11-19 Thread Gabriel Genellina
En Mon, 19 Nov 2007 15:01:16 -0300, Lamonte Harris [EMAIL PROTECTED]  
escribió:

 I need to some how make a script that logs into a website from my desktop
 and I can do the rest and grab the information on my on hopefully.  How
 would I login to a website using sockets with python?

See the urllib2 module.

-- 
Gabriel Genellina

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


Re: Is it possible to use sockets to login to a website that uses php?

2007-11-19 Thread Jeremy Dillworth
On Nov 19, 3:37 pm, Gabriel Genellina [EMAIL PROTECTED]
wrote:
 En Mon, 19 Nov 2007 15:01:16 -0300, Lamonte Harris [EMAIL PROTECTED]
 escribió:

  I need to some how make a script that logs into a website from my desktop
  and I can do the rest and grab the information on my on hopefully.  How
  would I login to a website using sockets with python?

 See the urllib2 module.

 --
 Gabriel Genellina

You may also want to have a look at the Twill project:

http://darcs.idyll.org/~t/projects/twill/doc/

Twill is a testing tool which can login to web apps as you describe.
It also has a Python API here:

http://darcs.idyll.org/~t/projects/twill/doc/python-api.html

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