我试图用 2captcha 解决的验证码是这样的-
步骤 1) 你输入了一些东西
第 2 步)您按继续,然后它会转到第 2 页
第 3 步)在第 2 页中,您会看到验证码页面 URL 根本没有改变
步骤 4)如何解决这个问题?我找到了站点密钥,但它没有解决,因为您必须先按继续...
编码
import sys
import os
sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
from twocaptcha import TwoCaptcha
api_key = 'api_key here'
solver = TwoCaptcha(api_key)
try:
result = solver.recaptcha(
sitekey='site_key',
url='url',
invisible=0,
enterprise=1
)
except Exception as e:
sys.exit(e)
else:
sys.exit('result: ' + str(result))
谢谢!