YesDid you write the python by yourself?
we need more details than this error to be able to help you out.ERROR_CAPTCHA_UNSOLVABLE
No. Recaptcha V2Is it an image to text captcha?
we need more details than this error to be able to help you out.
show me the variables you're sending to the captcha solver.
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 changed proxy address but don't work because proxy address isn't problem. Another thing...
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.
Don't workGo 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()
Second this makes sense used heavily.I recommend you to use a dedicated python library like:
https://pypi.org/project/python-anticaptcha/