opener = urllib.request.build_opener(urllib.request.HTTPCookieProcessor(cookieJar),
    urllib.request.HTTPHandler())
opener.get_method = lambda : 'GET'
request = urllib.request.Request('http://stackoverflow.com/')
response = opener.open(request)
for cookie in cookieJar:
    pass
Getting or Manipulating all cookies in Selenium Webdriver