Amazon load pickles cookies

Viewed 27
driver.get("https://sellercentral.amazon.com")
with open("cookies.pkl","rb") as cookie:
    cookies = pickle.load(cookie)
for c in cookies:
    driver.add_cookie(c)
driver.refresh()

I managed to sign in in seller central. When I always run it's pretty annoying asking for OTP again so I decided to save the cookies and load it, but when I add the cookies and refresh the driver. It always need to put the credentials to login. Nothing happens :( What is the problem of my code? please help thank you

0 Answers
Related