如何解决验证码企业?



我需要在蒸汽中传递验证码,验证码类型为Recaptcha v2企业,使用服务2recaptcha.com来传递验证码,显示错误ERROR_CAPTCHA_UNSOLVABLE,该网站本身是编写的,可能需要额外的参数,如参数s。我将显示我的代码作为一个例子:

def solve_recaptcha(data, url):
solver = TwoCaptcha(api_2captcha)
try:
result = solver.recaptcha(sitekey=data["sitekey"], url=url, enterprise=1, datas=data["datas"])
except Exception as ex:
print(f"Error during captcha solution: {ex}")
else:
return result

起初我犯了一个错误,没有注意到captcha企业,captcha解决了,但蒸汽给了我一个错误,现在当我开始解决像企业captcha的captcha, 2recaptcha网站给了我一个错误。我的错误是什么,我该如何解决?如果我没有使用正确的工具,我应该使用哪些?

我用while循环解决了这个问题:

while True:
try:
result = solver.recaptcha(sitekey=data["sitekey"], url=url, enterprise=1, score=0.3)
except Exception as ex:
print(f"Error during captcha solution: {ex}")
else:
return result

问题不在于你的代码。ERROR_CAPTCHA_UNSOLVABLE错误表示验证码没有成功解决。这是一个正常的错误。错误列表:https://2captcha.com/2captcha-api#error_handling

from twocaptcha import TwoCaptcha
def solve_recaptcha(data, url):
solver = TwoCaptcha("your API")
try:
result = solver.recaptcha(sitekey=data["sitekey"], url=url, enterprise=1, datas=data["datas"])
except Exception as ex:
print(f"Error during captcha solution: {ex}")
else:
return result

我面临的另一个问题是,在Steam网站上,在reCaptcha下没有"提交"按钮。我还不知道怎么传递。

在2captcha网站上有一个教程。https://2captcha.com/2captcha-api#solving_recaptchav2_new在他们解决验证码的演示页面上,有一个提交按钮。

最新更新