Join And Get Free Trial!

如何在 2024 年将NextCaptcha验证码服务与 GSA 验证码 Breaker 集成#

logoNextCaptcha
August 15,2024

将NextCaptcha与 GSA 验证码服务集成,您可以在自动化工作流程中利用 NextCaptcha 的高级验证码解决功能。以下是有关如何实现此集成的分步指南。

先决条件#

在开始之前,请确保您已准备好以下物品:
  • 一个有效的 GSA 验证码 Breaker 设置。
  • 一个具有 API 访问权限的有效NextCaptcha帐户。
  • GSA 验证码 Breaker 和NextCaptcha API 的基本知识。

步骤 1:从NextCaptcha获取 API 密钥#

  • 登录您的 NextCaptcha帐户

  • 导航到 **API** 部分。

  • 复制你的API密钥;您将需要它来验证您对NextCaptcha的请求

步骤 2:配置 GSA 验证码 Breaker#

  • 在您的系统上打开 GSA 验证码 Breaker。

  • 点击**选项**选项卡。

  • 转到**验证码**选项卡。

  • 点击**添加**按钮来创建一个新的验证码服务。

  • 在 **服务名称** 字段中,选择“NextCaptcha”

  • 在**API-key**字段中,输入NextCaptcha提供的 API 密钥(从步骤 1 获取)。

  • 在相应的字段中输入你的API密钥。

步骤 3:设置 API 请求#

  • GSA 验证码 Breaker 需要向 NextCaptcha 的 API 发送 POST 请求。在 GSA 中按如下方式配置请求: 以下是 config.ini 的一个示例:

     
         [setup]
         ;default settings
     
         ;name of this service (default is ini file name)
         ;name=
     
         ;where can we register/get more details?
         main url=https://nextcaptcha.com/
     
         ;how would you describe this service
         desc=NextCaptcha.com - Cheap And Fast Recaptcha Solving Service
     
         ;usually all types are supported, if not, specify them here
         image types supported=jpg, png, gif
     
         ;a rating of this service from 1-5
         rating=3
     
         base64 encode=1
     
         ;how much does this cost
         costs=0.0005
     
         ;what internal id is used for GSA products?
         id=61
     
         ;additional hosts to simulate
         simulate host=api.nextcaptcha.com
         simulate port=443
     
         ;******************************************************************************
         [balance]
         ;check balance of account
     
         url=https://api.nextcaptcha.com/getBalance
         post_data={"clientKey":"%API-KEY%"}
         encoding=json
     
         result=%balance_result%
         error=%balance_error%
     
         ;when simulating this service, use the following replies...
         simulate_result={"errorId":0,"balance":999}
         simulate_error={"errorId":10,"status":"ERROR_ZERO_BALANCE"}
     
         ;******************************************************************************
         [recaptcha_solve]
         url=https://api.nextcaptcha.com/createTask
         post_data={"clientKey":"%api-key%","task":{"type":"RecaptchaV2TaskProxyless","websiteURL":"%arg2%","websiteKey":"%arg1%","isInvisible":%arg5%}}
         encoding=json
     
         invisible_on=true
         invisible_off=false
     
         enterprise_on=true
         enterprise_off=false
     
         result=%recaptcha_result%
         error=%captcha_error%
     
         ;when simulating this service, use the following replies...
         simulate_result={"errorId": 0, "taskId": %report_id%}
         simulate_error={"errorId": 12, "errorCode": "ERROR_CAPTCHA_UNSOLVABLE", "errorDescription": "Captcha could not be solved by 5 different workers"}
     
         [recaptcha_solve loop]
         url=https://api.nextcaptcha.com/getTaskResult
         post_data={"clientKey":"%api-key%","taskId": %captcha_id%}
         encoding=json
         delay=5
         timeout=120
     
         simulate_result={"errorId":0, "status":"ready", "solution":{"text":"%result%", "url":""}, "cost":"0.000000", "ip":"1.2.3.4", "createTime":1472205564, "endTime":1472205570, "solveCount":"0"}
         simulate_error={"errorId": 12, "errorCode": "ERROR_CAPTCHA_UNSOLVABLE", "errorDescription": "Captcha could not be solved by 5 different workers"}
         simulate_loop={"errorId":0, "status":"processing"}
     
         ;******************************************************************************
         [recaptcha3_solve]
         url=https://api.nextcaptcha.com/createTask
         post_data={"clientKey":"%api-key%","task":{"type":"RecaptchaV3TaskProxyless","websiteURL":"%arg2%","websiteKey":"%arg1%","minScore":%arg4%,"pageAction":"%arg3%"}}
         encoding=json
     
         result=%recaptcha_result%
         error=%captcha_error%
     
         enterprise_on=true
         enterprise_off=false
     
     
         ;when simulating this service, use the following replies...
         simulate_result={"errorId": 0, "taskId": %report_id%}
         simulate_error={"errorId": 12, "errorCode": "ERROR_CAPTCHA_UNSOLVABLE", "errorDescription": "Captcha could not be solved by 5 different workers"}
     
         [recaptcha3_solve loop]
         url=https://api.nextcaptcha.com/getTaskResult
         post_data={"clientKey":"%api-key%","taskId": %captcha_id%}
         encoding=json
         delay=5
         timeout=120
     
         simulate_result={"errorId":0, "status":"ready", "solution":{"text":"%result%", "url":""}, "cost":"0.000000", "ip":"1.2.3.4", "createTime":1472205564, "endTime":1472205570, "solveCount":"0"}
         simulate_error={"errorId": 12, "errorCode": "ERROR_CAPTCHA_UNSOLVABLE", "errorDescription": "Captcha could not be solved by 5 different workers"}
         simulate_loop={"errorId":0, "status":"processing"}
     
         [recaptcha_report]
         url=https://api.nextcaptcha.com/reportIncorrectImageCaptcha
         post_data={"clientKey":"%api-key%","taskId": %captcha_id%}
         encoding=json
     
         simulate_result={"errorId":0,"status":"success"}
         simulate_error={"errorId":16,"status":"ERROR_NO_SUCH_CAPCHA_ID"}
     
         ;******************************************************************************
         ;extract variables (default input = last download data)
         ;******************************************************************************
     
         [recaptcha_result]
         front="gRecaptchaResponse":
         back=,|}
         remove=";null
     
         [captcha_error]
         front="errorCode":|"errorDescription":
         back=,|}
         remove="
         remove=";null;CAPCHA_NOT_READY;processing;errorDescription
     
         [captcha_id]
         front="taskId":
         back=,|}
         remove=null
     
         [balance_result]
         front="balance":
         back=,|}
         remove=";null
         translate_result_999=Connection was successful! - However, the result was delivered by GSA Captcha Breaker. Please uncheck the service to be simulated/emulated within GSA Captcha Breaker options.
     
         [balance_error]
         front="errorDescription":|"errorCode":
         back=,|}
         remove=";null
     
         ;******************************************************************************
         ;input variables (defined by 'type=...')
         ;******************************************************************************
     
         [API-Key]
         type=text
         hint=API-KEY to access the service
     
     

  • 将此配置放入 GSA 验证码服务配置文件夹,配置文件夹通常位于`C:\Users\Computer__User_Name\AppData\Roaming\GSA Search Engine Ranker\captcha_service\`

步骤 4:测试集成#

  • 保存配置。

  • 关闭 GSA 并重新打开它,在 GSA 验证码 Breaker 内运行测试以确保它可以与NextCaptcha通信并接收正确的验证码解决方案。

  • 如果一切设置正确,GSA 验证码 Breaker 现在将向NextCaptcha发送验证码挑战,并使用响应继续执行您的自动任务。

步骤 5:优化设置#

  • 重试逻辑: 在 GSA 验证码 Breaker 中配置重试逻辑,以防尝试失败或超时。
  • 超时设置: 调整超时设置以匹配 NextCaptcha 的平均响应时间。
  • 成本管理: 在NextCaptcha中监控您的 API 使用情况,以确保您不超出预算。

结论#

将NextCaptcha与 GSA 验证码 Breaker 集成非常简单,通过将 GSA 的自动化与 NextCaptcha 的高级解决技术相结合,可以增强您的验证码解决能力。遵循这些步骤将有助于确保顺利而有效地进行集成。 如果您遇到任何问题,咨询GSA 验证码 Breaker 和NextCaptcha的支持文档,或联系他们的支持团队以获得进一步帮助。