Menu

RecaptchaV2TaskProxyless:在不使用代理服务器的情况下自动绕过 Google Recaptcha 谜题

这种任务用于在不使用代理服务器的情况下破解 Google Recaptcha V2 谜题。任务会用我们自己的代理服务器和/或工作人员的 IP 地址执行。

对于通过一个 IP 地址破解谜题,但窗体有通过另一 IP 地址提交的 g-response 的情况,目前 Recaptcha 没有防范措施。Google 的 API不提供破解其 Recaptcha 谜题的人的 IP 地址。如果这种情况有变,则始终都能对其使用我们的普通型任务,即 RecaptchaV2Task

Recaptcha V2 funny example
Recaptcha V2 checkbox
Recaptcha V2 谜题示例

任务对象

属性类型必须使用用途
type字符串RecaptchaV2TaskProxyless
以前的任务类型的名称:NoCaptchaTaskProxyless。我们会一直支持该名称,无须更新代码。
websiteURL字符串目标网页的地址。可位于网站中的任何位置,甚至可位于会员区中。我们的工作人员不会转到该位置,而是会模拟其访问操作。
websiteKey字符串Recaptcha 网站密钥。请在文章中了解如何查找网站密钥。
recaptchaDataSValue字符串“data-s”参数的值。仅适用于 Google 网站的 Recaptcha 谜题。
isInvisible布尔值如果 Recaptcha 谜题不可见,则指定此属性。这会向我们的工作人员呈现相应小组件。

请求示例

Python
Javascript
PHP
Java
C#
bash
#pip3 install anticaptchaofficial

from anticaptchaofficial.recaptchav2proxyless import *

solver = recaptchaV2Proxyless()
solver.set_verbose(1)
solver.set_key("YOUR_API_KEY_HERE")
solver.set_website_url("https://website.com")
solver.set_website_key("SITE_KEY")
#set optional custom parameter which Google made for their search page Recaptcha v2
#solver.set_data_s('"data-s" token from Google Search results "protection"')

# Specify softId to earn 10% commission with your app.
# Get your softId here: https://anti-captcha.com/clients/tools/devcenter
solver.set_soft_id(0)

g_response = solver.solve_and_return_solution()
if g_response != 0:
    print "g-response: "+g_response
else:
    print "task finished with error "+solver.error_code

任务破解结果对象

属性类型用途
gRecaptchaResponse字符串与目标网站中的提交窗体发生相互作用所需的标记字符串。
cookies数组用于破解 Recaptcha 谜题的自愿使用的 Cookie 数组。仅适用于 google.com 域和子域。

回应示例

{
    "errorId":0,
    "status":"ready",
    "solution":
    {
        "gRecaptchaResponse":"3AHJ_VuvYIBNBW5yyv0zRYJ75VkOKvhKj9_xGBJKnQimF72rfoq3Iy-DyGHMwLAo6a3"
    },
    "cost":"0.001500",
    "ip":"46.98.54.221",
    "createTime":1472205564,
    "endTime":1472205570,
    "solveCount":"0"
}