Python - AntiCaptcha Help Guys

junior04

Junior Member
Joined
Jan 1, 2021
Messages
124
Reaction score
34
Hi guys,

I am writing Yahoo account opening program and i have a problem.

I am using anti-captcha and i failed.

Error Code:

ERROR_CAPTCHA_UNSOLVABLE

I getting this error.

Thanks for your comments.
 
Is it an image to text captcha?

we need more details than this error to be able to help you out.
No. Recaptcha V2


download.jpg
 
Python:
    def recaptchaV2(self):
        try:
            frame_reference = self.browser.find_element_by_id("recaptcha-iframe")
            self.browser.switch_to.frame(frame_reference)
            try:
                self.browser.find_element_by_class_name("recaptcha-checkbox-border").click()
            except:
                pass
            solver = recaptchaV2Proxyless()
            solver.set_verbose(1)
            solver.set_key(self.reApi)
            solver.set_website_url("https://login.yahoo.com/")
            solver.set_website_key("6LeGXAkbAAAAAAMGHQaxwylqpyvtF2jJMrvJff1h")

            g_response = solver.solve_and_return_solution()
            if g_response != 0:
                print("g-response: "+g_response)
                self.browser.execute_script('document.getElementsByName("g-recaptcha-response")[0].value = "%s" ;' % g_response)
                time.sleep(1)
                sc = 0
            else:
                print("task finished with error "+solver.error_code)
                sc = 1
            self.browser.switch_to.default_content()
        except:
            sc = 0
       
        if sc == 0:
            while True:
                try:
                    self.browser.find_element_by_name("sendCode").click()
                    break
                except:
                    try:
                        self.browser.switch_to.frame(frame_reference)
                        self.browser.find_element_by_id("recaptcha-submit").click()
                        self.browser.switch_to.default_content()
                    except:
                        if sc == 20:
                            break
                        else:
                            time.sleep(0.5)
                            sc += 1
                            continue

        return sc
 
i still have a problem and i need help
 
From Anticaptcha documentation:

5 different workers could not solve the Captcha. Customers are charged for these tasks because our workers spend time performing them.

Try to change proxy address.
 
From Anticaptcha documentation:

5 different workers could not solve the Captcha. Customers are charged for these tasks because our workers spend time performing them.

Try to change proxy address.
I changed proxy address but don't work because proxy address isn't problem. Another thing...
 
Go to recaptcha demo https://www.google.com/recaptcha/api2/demo
and check if you receive same error.

And try without click:
Code:
self.browser.find_element_by_class_name("recaptcha-checkbox-border").click()
 
solver.set_website_key("6LeGXAkbAAAAAAMGHQaxwylqpyvtF2jJMrvJff1h")

this key can change, you need to extract the key from the captcha element

As @redarrow says the python-anticapcha works fine theres some good YT vid on it
 
Last edited:
Back
Top