Can I use python code to login a website?

Gillou nospam at bigfoot.com
Wed Mar 27 14:49:36 EST 2002


try this scheme with urllib...

f = urllib.urlopen('http://myname:mypassword@somehost.com/...')


"newgene" <newgene at bigfoot.com> a écrit dans le message news:
a50631f6.0203262119.3b9db7a4 at posting.google.com...
> Hi, group,
>
>      I am wondering if possible to use python code to login a website
> need username and password, like mail.yahoo.com. Another type of
> website is poping up a authorization box asking for username and
> password instead of a input form within the webpage.
>
> Thanks you in advance.
>
> Newgene





More information about the Python-list mailing list