Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network failed with RecaptchaException #19

Open
notasquid1938 opened this issue Dec 11, 2023 · 4 comments
Open

Network failed with RecaptchaException #19

notasquid1938 opened this issue Dec 11, 2023 · 4 comments

Comments

@notasquid1938
Copy link

2023-12-10 21:34:13 DEBUG Opening registration page
2023-12-10 21:34:17 DEBUG Entering email
2023-12-10 21:34:18 DEBUG Entering username and password
2023-12-10 21:34:19 DEBUG Solving captcha
2023-12-10 21:34:36 DEBUG Quitting driver
2023-12-10 21:34:38 ERROR Network failed with RecaptchaException.
2023-12-10 21:34:43 INFO Using next proxy: http://127.0.0.1:1881
2023-12-10 21:34:47 INFO Creating reddit account
2023-12-10 21:34:49 DEBUG Opening registration page
2023-12-10 21:34:53 DEBUG Entering email
2023-12-10 21:34:55 DEBUG Entering username and password
2023-12-10 21:34:56 DEBUG Solving captcha
2023-12-10 21:35:11 DEBUG Quitting driver
2023-12-10 21:35:13 ERROR Network failed with RecaptchaException.
2023-12-10 21:35:18 INFO Using next proxy: http://127.0.0.1:1881
2023-12-10 21:35:22 INFO Creating reddit account
2023-12-10 21:35:23 DEBUG Opening registration page
2023-12-10 21:35:29 DEBUG Entering email
2023-12-10 21:35:30 DEBUG Entering username and password
2023-12-10 21:35:31 DEBUG Solving captcha
2023-12-10 21:35:46 DEBUG Quitting driver
2023-12-10 21:35:48 ERROR Network failed with RecaptchaException.

Every time it tries to create an account the captcha gets blocked, so the script gets stuck. Does this eventually not happen by chance if you run the script long enough?

@notasquid1938
Copy link
Author

Just wanted to follow up, it does appear to be a numbers game because several attempts have succeeded. It appears that the success rate is around 2-3% though, takes a while. However, its fine if you just run it overnight or in the background.

@cubicbyte
Copy link
Owner

Sadly, nowadays the script feels very bad with tor proxy. So much so that now it is more efficient to use local IP without proxy

I'm slowly working on solving the problem, recently dded fake user-agents and integrated this selenium driver on the fly: https://github.com/ultrafunkamsterdam/undetected-chromedriver
But there are a few things to work out, and a lot of work is still needed to roll everything out in a stable release

@notasquid1938
Copy link
Author

Thanks for following up, glad to see you're working on improving this. Just leaving this as a note for others looking to use this script. The accounts this script creates cannot be used with the Reddit API, they get suspended almost instantly (my guess is because of the tor proxies being used to create them).

@cubicbyte
Copy link
Owner

Update

Turns out that the undetected-chromedriver didn't really changed anything much

But I plan to add support for 2Captcha service (paid, but cheap) soon, which should completely remove this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants