Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python selenium save cookies

# read cookies

import pickle
import selenium.webdriver 

driver = selenium.webdriver.Firefox()
driver.get("http://www.google.com")
cookies = pickle.load(open("cookies.pkl", "rb"))
for cookie in cookies:
    driver.add_cookie(cookie)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #selenium #save #cookies
ADD COMMENT
Topic
Name
5+9 =