Re: Passing a CookieJar instead of a cookieproc to urllib2.build_opener

2007-07-11 Thread John J. Lee
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: [...] > Are the docs themselves in subversion? I suppose I should also update > the doc at http://docs.python.org/lib/module-urllib2.html Yep: http://svn.python.org/projects/python/trunk/Doc/lib/liburllib2.tex John -- http://mail.python.org/mail

Re: Passing a CookieJar instead of a cookieproc to urllib2.build_opener

2007-07-11 Thread [EMAIL PROTECTED]
On Jul 10, 11:10 pm, [EMAIL PROTECTED] (John J. Lee) wrote: > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > > urllib2.build_opener happily accepts and ignores a FileCookieJar.I > > had a bug in my code which looked like > > > urllib2.build_opener(

Re: Passing a CookieJar instead of a cookieproc to urllib2.build_opener

2007-07-10 Thread John J. Lee
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > urllib2.build_opener happily accepts and ignores a FileCookieJar.I > had a bug in my code which looked like > > urllib2.build_opener(func_returning_cookie_jar()) > > which should have been > >

Passing a CookieJar instead of a cookieproc to urllib2.build_opener

2007-07-09 Thread [EMAIL PROTECTED]
urllib2.build_opener happily accepts and ignores a FileCookieJar.I had a bug in my code which looked like urllib2.build_opener(func_returning_cookie_jar()) which should have been urllib2.build_opener(HTTPCookieProcessor(func_returning_cookie_jar()) The problem is that the code ran happily

build_opener

2006-01-09 Thread Steve Young
Hello, I had a question about urllib2's build_opener() statement. I am trying to just get the html from any webpage as a string but I need everything on the page to be the same as what it'd be if I would browse to that page (and at the very least, all the href's). This is my

build_opener()

2005-12-09 Thread Steve Young
Hello, I had a question about urllib2's build_opener() statement. I am trying to just get the html from any webpage as a string but I need everything on the page to be the same as what it'd be if I would browse to that page (and at the very least, all the href's). This is my

build_opener()

2005-11-28 Thread Steve Young
Hello, I had a question about urllib2's build_opener() statement. I am trying to just get the html from any webpage as a string but I need everything on the page to be the same as what it'd be if I would browse to that page (and at the very least, all the href's). This is my

Problem with: urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))

2005-09-05 Thread Josef Cihal
environ['HOME']= r"C:\tmp\COOKIE" # cj.load(os.path.join(os.environ["HOME"], "cookies.txt")) opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) r = opener.open("http://brokerjet.ecetra.com/at/news/?/";) Traceback (most recent call last)