第三种方法怎么错误了
url = 'http://www.baidu.com' cj = cookielib.CookieJar() opener = urllib2.bulid_opener(urllib2.HTTPCookieProcessor(cj)) urllib2.install_opener(opener) response3 = urllib2.urlopen(url) print response3.getcode() print len(response3.read())
错误显示:
cj = cookielib.CookieJar()
NameError: name 'cookielib' is not defined