mikeyy / nonoCAPTCHA

An asynchronized Python library to automate solving ReCAPTCHA v2 using audio
GNU General Public License v3.0
895 stars 196 forks source link

add initial automated tests #18

Closed frosty00 closed 6 years ago

frosty00 commented 6 years ago

This will run each time something is pushed to this repository. I would also like to add a webhook or test script that tests the captcha solver is still working but we have to overcome the issue of how to manage the proxies first.

mikeyy commented 6 years ago

Awesome. Yeah, I can host a proxy server that just proxies the request to a list of the fastest proxies in my list but then there is still no guarantee they aren't blocked from audio.

frosty00 commented 6 years ago

I think what we will have to do for tests

for i in range(x):
    result = await main()
    if result:
        # test succeeded
         break

Problem with backconnect proxies is that they won't work with the ProxyDB idea that you had

mikeyy commented 6 years ago

Awesome. Yeah, I can host a proxy server that just proxies the request to a list of the fastest proxies in my list but then there is still no guarantee they aren't blocked from audio.

All we really have to do to make backconnect proxies work is fetch the real IP address and use that as the unique identifier instead of the proxy server, I would think.

frosty00 commented 6 years ago

All we really have to do to make backconnect proxies work is fetch the real IP address and use that as the unique identifier instead of the proxy server, I would think.

Seems like an unnessary http request. Could you setup the server in such a way that it just sends the ip and port of the proxy we're trying to connect to? This also avoids having to route all traffic through your server, meaning responses should come back faster.