cj = cookielib.CookieJar()
opener = build_opener(HTTPCookieProcessor(cj), HTTPHandler())
req = Request('http://www.about.com')
f = opener.open(req)
html = f.read()
print(html[:50])
print('the cookies are: ')
for cookie in cj:
    pass
Получение всех файлов cookie в Python