Re: Login to website using urllib2

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gabriel Genellina

    Re: Login to website using urllib2

    En Thu, 18 Sep 2008 10:23:50 -0300, Mohit Ranka <mohitranka@gma il.com>
    escribió:
    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.
    >
    Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

    >
    Any suggestions/pointers/solutions?
    Your second call to urllib2.install _opener completely replaces the former
    opener; you should combine both handlers before installing ONE opener.

    --
    Gabriel Genellina

Working...