[BangPypers] automate logging (Pythonic)
vijay750 at gmail.com
Thu Jul 24 13:35:59 CEST 2008
On 7/24/08, bangpypers-request at python.org <bangpypers-request at python.org>
> From: Pythonic <pythonic at gmail.com>
> Subject: Re: [BangPypers] automate logging
> To: leo_365 at yahoo.com, Bangalore Python Users Group - India
> leo davis wrote:
> > Hello,
> > I'm trying to write a code to automate logging into a website.I have
> > chosen the forum 'www.tek-tips.com' as an example and tried this
> > script on it....But it doesnt seem to work...What am i missing
> > here..plz help
> > theurl = 'www.tek-tips.com'
> > protocol = 'http://'
> > username = 'johnny'
> > password = 'yesyes'
> > passman.add_password(None, theurl, username, password)
change "theurl" to contain the protocol as well, i.e., instead of the above,
passman.add_password(None, protocol + thurl, username, password)
If it works - don't ask me why! I ran into the same problem, and discovered
this through trial and error.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the BangPypers