【发布时间】:2020-02-20 08:11:46
【问题描述】:
我对python3_anticaptcha(anti-captcha.com提供的api)有疑问,在网上搜索,找到支持并尝试了一个多月但没有运气。
我在一个网站上做一个自动登录,并在anti-captcha的doc上复制api:
def runGee(self, challenge):
print("start gee")
try:
# Enter the key to the AntiCaptcha service from your account. Anticaptcha service key.
ANTICAPTCHA_KEY = "mycode"
# обязательные параметры
websiteURL = "https:\/\/www.nike.com.hk"
gt = "2328764cdf162e8e60cc0b04383fef81"
print("sloving1")
print("challenge:" ,challenge)
# пример работы с GeeTestTask без прокси
result = GeeTestTaskProxyless.GeeTestTaskProxyless(anticaptcha_key=ANTICAPTCHA_KEY,
websiteURL=websiteURL,
gt=gt).captcha_handler(challenge=challenge)
print("sloving2")
print(result)
print("--end gee--")
except Exception as err:
print(err)
print("--end with error--")
但是,geetask 开始超过 3 分钟(或更长时间),并且每次都出错。通常错误代码如下:
{'errorId': 34, 'errorCode': 'ERROR_TOKEN_EXPIRED', 'errorDescription': 'Captcha provider
reported that additional variable token has expired.', 'taskId': 1204556667}
或
{'errorId': 12, 'errorCode': 'ERROR_CAPTCHA_UNSOLVABLE', 'errorDescription': ' Captcha
could not be solved by 5 different workers.', 'taskId': 1204060350}
..等
取决于我传递的参数。
我可以知道我是否将正确的值传递给了 geetask?还是代码有问题? 此外,如果geetest返回正确的值,我需要做任何其他事情来传递验证码(或将代码传递给geetest服务器)或GeeTestTaskProxyless已经完成(不做任何事情)?
这对我来说非常困难,有人成功使用过这个 api 吗?谢谢
【问题讨论】:
标签: python-3.x selenium captcha