Automatic login to website (newbie)

Tim Williams tim at tdw.net
Tue May 15 10:25:45 EDT 2007


On 15 May 2007 06:38:45 -0700, phishboh at gmail.com <phishboh at gmail.com> wrote:
> I'm trying to use PAMIE to login to a website:
>
> import cPAMIE
>
> # python.org - just a test, works fine
> ie = cPAMIE.PAMIE()
> website = "http://www.python.org"
> ie.navigate(website)
> ie.textBoxSet('q', 'pamie')
> ie.buttonClick('submit')
>
> # expekt.com - this is what I want to do, but it fails
> ie = cPAMIE.PAMIE()
> website = "http://www.expekt.com/eng"
> ie.navigate(website)
> ie.textBoxSet('user', 'MyLogin')
> ie.textBoxSet('pass', 'MyPassword')
> ie.buttonClick('actn')

I don't have PAMIE installed nor have I ever used it,   but the login
area is in a frame and I've had problems with other screen scrapers
and frames.

The frame URL is http://www.expekt.com/contenttop.jsp ,  you could try
navigating directly to the frame to see if it helps

website = "http://www.expekt.com/contenttop.jsp"
ie.navigate(website)
ie.textBoxSet('user', 'MyLogin')
ie.textBoxSet('pass', 'MyPassword')
ie.buttonClick('actn')

HTH :)



More information about the Python-list mailing list