Revision: 17736
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 12, 2009 18:35 by manatlan
Initial Code
import cookielib, urllib, urllib2 # install an urlopener which handle cookies cookiejar = cookielib.CookieJar() opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookiejar)) urllib2.install_opener(opener) request = urllib2.Request("http://google.fr", None, {}) r=urllib2.urlopen(request) for i in cookiejar: print i
Initial URL
Initial Description
Initial Title
request web with cookies handling
Initial Tags
python, web
Initial Language
Python