Getting or Manipulating all cookies in Selenium Webdriver
You can provide a userdir and extract the cookies from there.
co = webdriver.ChromeOptions()co.add_argument("--user-data-dir=userdir")browser = webdriver.Chrome(chrome_options = co)
The cookies will end up in userdir/Default/Cookies
which is an SQLite3 database.
Why don't you just use some http libraries with cookie inspection
import urllib2import cookielibcookieJar = cookielib.CookieJar()opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookieJar),urllib2.HTTPHandler())opener.get_method = lambda: 'GET'request = urllib2.Request('http://stackoverflow.com/')response = opener.open(request)for cookie in cookieJar: print cookie