[Notes] Selenium Python self-loading browser profile to achieve free login to access the page that is login cookie-free access

How Selenium browser to load the configuration file to achieve free login to access the page that is login cookie-free access

Front share with you how to log cookie-free access to the site today to share with you a similar method - Load browser profile implement an optional login
to briefly tell you is that why load the configuration file to achieve free sign-on feature, which is mainly because the configuration file of the browser has been saved, we usually visit the site saved cookies, so as long as we load the configuration file is equivalent to selenium drive offers plenty of Cookies

Locate your browser configuration directory (for example to Win10_Chrome)

  • First, we need to open 隐藏文件可见, it is very important, because our path is configured in a hidden directory
  • Directory path isC:\Users\<当前用户名>\AppData\Local\Google\Chrome\User Data

Load with Selenium

Guess you like

Origin blog.csdn.net/weixin_44906836/article/details/104077498
Recommended