Yongbo Blog
Home

Some thought on using selenium on auto login to ChatGPT.

YongBoYu 2024-06-05

Problem

If the website uses CAPTCHA to verify human beings, then just using the login credentials is not enough. Some methods I tried are listed below.

CAPTCHA Solving Service

These service APIs do not really solve the problem because I think it is against the purpose of what I want to do in the first place.

Login First.

So, I plan to take some action on the page after login. One alternately way is to export the cookies from the website as JSON(YAML, .env, whatever really), then use driver.add_cookie(cookie) functions with logged-in URL(The one with session id) to log into the website. This login into the web successfully. But unfortunately, the cookies does exprie in a period of time, in order to build a succful auto bot on ChatGPT. It will require the following pieces. - A script to auto import cookies into work dir.

  • Have a test in the pipeline to test if the cookie expired.
  • Have the real crendential.
  • Then the rest..

Sidebar

Some side tools.

    Latest Post Announcements Metronome Calendar