cookiejar cookielib CookieJar opener urllib2 build_opener urllib2 HTTP

1
2
3
cookiejar = cookielib.CookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookiejar))
file = opener.open('http://www.free-uin.org/r/img.php?regen=y').read()