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)
How to save and load cookies using python selenium webdriver