Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

[feature] reCAPTCHA solver and cookies reusing are supported #42

Merged
merged 13 commits into from
Dec 22, 2022

Conversation

DevRoss
Copy link
Contributor

@DevRoss DevRoss commented Dec 17, 2022

A new auth_type, which can solve simple reCAPTCHA.
testing:

ChatGPT(email='your_email', password='your_password', auth_type='openai')
  • reCAPTCHA v1
  • reCAPTCHA enterprise.
  • reuse login cookies

@terry3041
Copy link
Owner

Looks good to me. Though I don't have much time to test this.
I will merge this few days after my exam.

@DevRoss
Copy link
Contributor Author

DevRoss commented Dec 19, 2022

Good news for new commits:

  1. The reCAPTCHA enterprise challenge is solved by using 2captcha api, now it can log in without human interaction.
  2. fix bug for checking error response.

For testing:

  1. Register a 2captcha account, add funds and get the apikey.
  2. launch ChatGPT with apikey.
ChatGPT(email='your_email', password='your_password', auth_type='openai', twocaptcha_apikey='your_twocaptcha_apikey')

If you want to solve reCAPTCHA enterprise (image selecting) manually, just leave twocaptcha_apikey blank.

ChatGPT(email='your_email', password='your_password', auth_type='openai')

here is the link with my referral code:
https://2captcha.com?from=16224155

@DevRoss DevRoss changed the title [feature] simple reCAPTCHA solver supported. [feature] reCAPTCHA solver supported. Dec 19, 2022
Ross and others added 5 commits December 20, 2022 10:06
* mod response waiting time

* fix reset_conversation

* mod __del__ function

Waiting for completion time 600s -> 120s
Reset the conversation find element "New Chat" -> "New chat"

Co-authored-by: Ross <ross@niubi.im>
* login supports save and reusing cookies

* fix

* add annontation.

Co-authored-by: Ross <ross@niubi.im>
@DevRoss DevRoss changed the title [feature] reCAPTCHA solver supported. [feature] reCAPTCHA solver and cookies reusing are supported Dec 21, 2022
@DevRoss
Copy link
Contributor Author

DevRoss commented Dec 21, 2022

Reuse login cookies:

ChatGPT(auth_type='openai', email='example@xxx.com', password='password',
               twocaptcha_apikey='your_twocaptcha_apikey' , login_cookies_path='your_cookies_path',
               verbose=True)

ChatGPT(auth_type='google', email='example@gamil.com', password='password',
               login_cookies_path='your_cookies_path', verbose=True)

@terry3041
Copy link
Owner

Looks good to me.

@terry3041 terry3041 merged commit be25292 into terry3041:main Dec 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants