Re: urllib.urlopen() with pages that requires cookies.

2006-04-29 Thread John J. Lee
"mwt" <[EMAIL PROTECTED]> writes: > Fredrik Lundh wrote: [...] > > use urllib2 and cookielib. here's an outline: > > > > import urllib2, cookielib > > > > # set things up > > jar = cookielib.CookieJar() > > handler = urllib2.HTTPCookieProcessor(jar) > > opener = urllib2.build_

Re: urllib.urlopen() with pages that requires cookies.

2006-04-27 Thread mwt
Fredrik Lundh wrote: > Øyvind Østlund wrote: > > > I am trying to visit a limited amount of web pages that requires cookies. I > > will get redirected if my application does not handle them. I am using > > urllib.urlopen() to visit the pages right now. And I need a push in the > > right direction

Re: urllib.urlopen() with pages that requires cookies.

2006-04-27 Thread Fredrik Lundh
Øyvind Østlund wrote: > I am trying to visit a limited amount of web pages that requires cookies. I > will get redirected if my application does not handle them. I am using > urllib.urlopen() to visit the pages right now. And I need a push in the > right direction to find out how to deal with page