cookie = [item[“name”] + “=” + item[“value”] for item in driver.get_cookies()]
print cookie
cookiestr = ‘;’.join(item for item in cookie)
print cookiestr
headers = {‘cookie’:cookiestr}
req = urllib2.Request(driver.current_url, headers = headers)
response = urllib2.urlopen(req)
print response.read()