📜  python selenium 保存 cookie - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:21.432000             🧑  作者: Mango

代码示例2
# save cookies 

import pickle
import selenium.webdriver 

driver = selenium.webdriver.Firefox()
driver.get("http://www.google.com")
pickle.dump( driver.get_cookies() , open("cookies.pkl","wb"))