1

I am developing a Python script with Selenium to make some automation on a website.

The script need to login first to have access to specific pages for my automation.

I would like to skip this login process by using cookie session like PhantomBuster does.

It exists here only solution to save a cookie after a first login and re-use this cookie to skip login process. This is not what I want.

I want my script load existing cookie from normal chrome or firefox browser in order to connect to website automatically without typing email/password.

Is it possible with Python or Javascript ?

Gauthier Buttez
  • 1,005
  • 1
  • 16
  • 40

1 Answers1

0

Try

cookie = {'key': 'value'}
browser.add_cookie(cookie)

You may have to hit the root of the site first then add the cookie and then attempt to get to pages past the authentication.

Kevin Smeeks
  • 185
  • 10