cubicbyte / reddit-account-generator

Automatically generate reddit accounts
MIT License
62 stars 13 forks source link

Network failed with RecaptchaException #19

Open notasquid1938 opened 11 months ago

notasquid1938 commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

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 commented 10 months ago

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.