Login to website using urllib2

Mohit Ranka mohitranka at gmail.com
Thu Sep 18 15:23:50 CEST 2008

Hi All,
             I am trying to fetch HTML content from a website that has
different version of pages for "logged" users and "guseuests" users. I need
to fetch the "logged" user pages. The problem is, even with the use of basic
authentication, I am getting "guest" user page with urllib2.urlopen. The
code can be seen here.


Any suggestions/pointers/solutions?

Thanks and regards,
Mohit Ranka.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080918/6bbdd3b4/attachment.html>

More information about the Python-list mailing list