RecaptchaV3TaskProxyless: 구글 리캡챠 V3를 푸세요.
이 유형의 태스크 객체는 작업자 컴퓨터에서 구글 리캡챠 V3를 푸는 데 필요합니다. 이 태스크는 자체 프록시 서버 및/혹은 작업자 IP 주소를 이용하여 저희 서비스에 의해 시행됩니다.
리캡챠 V2-비공개와 리캡챠 V3 사이에 차이점이 있다는 점을 유의하세요. 이 둘은 동일해 보이며 혼란을 초래할 수 있습니다. 올바른 유형을 결정하는 빠른 방법이 있습니다. API를 V2-비공개 및 V3로 풀어보세요. 시도 중 하나에서 오류가 생겨도, 다른 시도에서는 오류가 발생하지 않을 겁니다.
저희는 작업자를 리캡챠 "점수"로 테스트하였고 0.3, 0.7, 0.9와 같은 3개의 그룹(대기열)으로 나누었습니다. 각각은 작업 중이지 않은 작업자들로 인해 가격이 약간 다를 수 있습니다. minScore 프로퍼티를 통과함으로써 태스크가 들어가는 대기열을 정의합니다. 대부분의 작업 가능한 작업자들의 점수는 0.3점이며, 최소 0.9점입니다.
리캡챠 V3에 대한 자세한 내용은 this 자주 묻는 질문 섹션에서 확이날 수 있습니다.

리캡챠 V3의 예시. 보통 페이지 하단 오른쪽에 로고 뱃지가 있습니다. 하지만 자바스크립트롯 손쉽게 삭제할 수 있습니다.
태스크 객체
프로퍼티 | 유형 | 필수 | 목적 |
---|---|---|---|
type | 스트링 | 예 | RecaptchaV3TaskProxyless |
websiteURL | 스트링 | 예 | 타겟 웹페이지 주소. 웹사이트의 어디에든지, 심지어 고객 페이지에도 위치할 수 있습니다. 저희 작업자는 이 부분을 다루지 않지만, 대신에 이 페이지 방문을 시뮬레이션합니다. |
websiteKey | 스트링 | 예 | 리캡챠 웹사이트 키. this 기사에서 찾는 방법을 알아보세요. |
minScore | 2배 | 예 | 필수 점수로 작업자를 필터링하세요. 점수는 0.3 0.7 0.9 중 하나일 수 있습니다. |
pageAction | 스트링 | 아니요 | 리캡챠의 "작업" 값. 웹사이트 소유자는 사용자가 이 매개변수를 통해서 페이지에서 무엇을 하고 있는지 규정합니다. 예시: grecaptcha.execute('site_key', {action:'login_test'}) |
isEnterprise | 불린 | 아니요 | 엔터프라이즈 API로 풀린 이 V3가 필요하다면 이 플래그를 "참"으로 설정하세요. 기본값은 "거짓"이며 리캡챠가 논 엔터프라이즈 API로 풀립니다. 다음 예시와 같이 자바스크립트 콜이 결정될 수 있습니다.
grecaptcha.enterprise.execute('site_key', {..}) |
apiDomain | 스트링 | 아니요 | 이 매개변수를 사용하여 Recaptcha 스크립트를 제공해야 하는 도메인 이름을 보냅니다. "www.google.com" 또는 "www.recaptcha.net"의 두 값 중 하나만 가질 수 있습니다. 수행 중인 작업을 이해하지 못하는 경우 이 매개변수를 사용하지 마십시오. |
예시 요청
CURL
curl -i -H "Accept: application/json" \
-H "Content-Type: application/json" \
-X POST -d '{
"clientKey":"YOUR_API_KEY_HERE",
"task":
{
"type":"RecaptchaV3TaskProxyless",
"websiteURL":"http://mywebsite.com/recaptcha/test.php",
"websiteKey":"6Lc_aCMTAAAAABx7u2N0D1XnVbI_v6ZdbM6rYf16",
"minScore": 0.3,
"pageAction": "myverify",
"isEnterprise": false
},
"softId": 0
}' https://api.anti-captcha.com/createTask
PHP
<?php
//git clone git@github.com:AdminAnticaptcha/anticaptcha-php.git
include("anticaptcha.php");
include("recaptchaV3.php");
$api = new RecaptchaV3();
$api->setVerboseMode(true);
//your anti-captcha.com account key
$api->setKey("YOUR_API_KEY_HERE");
//target website address
$api->setWebsiteURL("http://makeawebsitehub.com/recaptcha/test.php");
//recaptcha key from target website
$api->setWebsiteKey("6LfI9IsUAAAAAKuvopU0hfY8pWADfR_mogXokIIZ");
//parameters for V3
//score you would like to have
$api->setMinScore(0.9);
//optional page action
$api->setPageAction("some_action");
//Specify softId to earn 10% commission with your app.
//Get your softId here: https://anti-captcha.com/clients/tools/devcenter
$api->setSoftId(0);
//create task in API
if (!$api->createTask()) {
$api->debout("API v2 send failed - ".$api->getErrorMessage(), "red");
return false;
}
$taskId = $api->getTaskId();
//wait in a loop for max 300 seconds till task is solved
if (!$api->waitForResult(300)) {
echo "could not solve captcha\n";
echo $api->getErrorMessage()."\n";
} else {
$gResponse = $api->getTaskSolution();
echo "\n";
echo "your recaptcha token: $gResponse\n\n";
//check result, then:
$api->reportCorrectRecaptcha();
//or
//$api->reportIncorrectRecaptcha();
}
Python
#pip3 install anticaptchaofficial
from anticaptchaofficial.recaptchav3proxyless import *
solver = recaptchaV3Proxyless()
solver.set_verbose(1)
solver.set_key("YOUR_API_KEY_HERE")
solver.set_website_url("https://website.com")
solver.set_website_key("SITE_KEY")
solver.set_page_action("home_page")
solver.set_min_score(0.9)
# 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
NodeJS
//npm install @antiadmin/anticaptchaofficial
//https://github.com/AdminAnticaptcha/anticaptcha-npm
const ac = require("@antiadmin/anticaptchaofficial");
ac.setAPIKey('YOUR_API_KEY_HERE');
//Specify softId to earn 10% commission with your app.
//Get your softId here: https://anti-captcha.com/clients/tools/devcenter
ac.setSoftId(0);
ac.solveRecaptchaV3('http://DOMAIN.COM',
'WEBSITE_KEY',
0.3, //minimum score required: 0.3, 0.7 or 0.9
'PAGE_ACTION_CAN_BE_EMPTY')
.then(gresponse => {
console.log('g-response: '+gresponse);
})
.catch(error => console.log('test received error '+error));
C#
//git clone git@github.com:AdminAnticaptcha/anticaptcha-csharp
using System;
using Anticaptcha_example.Api;
using Anticaptcha_example.Helper;
using Newtonsoft.Json.Linq;
namespace Anticaptcha_example
{
internal class Program
{
private static void Main() {
DebugHelper.VerboseMode = true;
var api = new RecaptchaV3Proxyless
{
ClientKey = "YOUR_API_KEY_HERE",
WebsiteUrl = new Uri("http://makeawebsitehub.com/recaptcha/test.php"),
WebsiteKey = "6LfI9IsUAAAAAKuvopU0hfY8pWADfR_mogXokIIZ",
PageAction = "login_or_register",
IsEnterprise = false,
// Specify softId to earn 10% commission with your app.
// Get your softId here:
// https://anti-captcha.com/clients/tools/devcenter
SoftId = 0
};
api.MinScore(0.3)
if (!api.CreateTask())
DebugHelper.Out("API v2 send failed. " + api.ErrorMessage, DebugHelper.Type.Error);
else if (!api.WaitForResult())
DebugHelper.Out("Could not solve the captcha.", DebugHelper.Type.Error);
else
DebugHelper.Out("Result: " + api.GetTaskSolution().GRecaptchaResponse, DebugHelper.Type.Success);
}
}
}
Java
//git clone git@github.com:AdminAnticaptcha/anticaptcha-java.git
DebugHelper.setVerboseMode(true);
RecaptchaV3Proxyless api = new RecaptchaV3Proxyless();
api.setClientKey("YOUR_API_KEY_HERE");
api.setWebsiteUrl(new URL("http://getcaptchajob.com/"));
api.setWebsiteKey("6LfE4ZIUAAAAAGSYvvoszRvEC9IgFVyXwGkypn-W");
api.setPageAction("testPageAction");
api.setMinScore(0.9);
//Specify softId to earn 10% commission with your app.
//Get your softId here: https://anti-captcha.com/clients/tools/devcenter
api.setSoftId(0);
if (!api.createTask()) {
DebugHelper.out(
"API v2 send failed. " + api.getErrorMessage(),
DebugHelper.Type.ERROR
);
} else if (!api.waitForResult()) {
DebugHelper.out("Could not solve the captcha.", DebugHelper.Type.ERROR);
} else {
DebugHelper.out("Result: " + api.getTaskSolution().getGRecaptchaResponse(), DebugHelper.Type.SUCCESS);
}
반응 예시
JSON(오류 없음)
{
"errorId": 0,
"taskId": 7654321
}
JSON(오류 있음)
{
"errorId": 1,
"errorCode": "ERROR_KEY_DOES_NOT_EXIST",
"errorDescription": "Account authorization key not found in the system"
}
솔루션을 불러오세요.
메소드 getTaskResult을(를) 이용하여 솔루션을 요청하세요. 첫 요청을 하기 이전에 5초 정도 작업자에게 시간을 주세요. 작업자가 아직 바쁘다면, 3초 후에 다시 시도하세요.
태스크 솔루션 객체
프로퍼티 | 유형 | 목적 |
---|---|---|
gRecaptchaResponse | 스트링 | 타겟 웹사이트의 제출 양식과 상호작용하는 데 필요한 토큰 스트링 |
반응 예시
JSON(오류 없음)
{
"errorId":0,
"status":"ready",
"solution":
{
"gRecaptchaResponse":"3AHJ_VuvYIBNBW5yyv0zRYJ75VkOKvhKj9_xGBJKnQimF72rfoq3Iy-DyGHMwLAo6a3"
},
"cost":"0.001500",
"ip":"46.98.54.221",
"createTime":1472205564,
"endTime":1472205570,
"solveCount":"0"
}