RecaptchaV2EnterpriseTaskProxyless:プロキシなしでGoogle RecaptchaV2 Enterprise をバイパスする
このタイプのタスクは、作業員の IPアドレスからGoogle Recaptcha V2 Enterprise を解決する場合に使用します。
RecaptchaV2TaskProxylessとほぼ同じですが、タスクはEnterprise APIを使って解決され、Recaptcha V3のスコアが最も良い作業員に割り当てられます。

RecaptchaV2Enterpriseの例です。見た目では、non-Enterprise バージョンと同じです。
Python
Node.js
PHP
Java
C#
bash
Python で Recaptcha V2 Enterprise を解く方法
#pip3 install anticaptchaofficial
from anticaptchaofficial.recaptchav2enterpriseproxyless import *
solver = recaptchaV2EnterpriseProxyless()
solver.set_verbose(1)
solver.set_key("YOUR_API_KEY_HERE")
solver.set_website_url("https://website.com")
solver.set_website_key("YOUR_API_KEY_HERE")
# solver.set_enterprise_payload({"s": "sometoken"})
# 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)
# user-agent in case you need it:
print("user-agent: "+solver.get_user_agent())
else:
print("task finished with error "+solver.error_code)タスクオブジェクト
| プロパティ | タイプ | 必須 | 目的 |
|---|---|---|---|
| type | 文字列 | はい | RecaptchaV2EnterpriseTaskProxyless |
| websiteURL | 文字列 | はい | ターゲットページのアドレス。ユーザーエリアでも、ウェブサイトのどこにでも挿入できます。作業員は実際にアクセスしませんがアクセスをシミュレートします。 |
| websiteKey | 文字列 | はい | Recaptcha のウェブサイトキーです。 検索方法について この記事をご覧下さい。 |
| enterprisePayload | オブジェクト | いいえ | sitekey とともに "grecaptcha.enterprise.render" メソッドに渡される可能性のあるオプションの追加パラメータです。検索対象となる例: |
| apiDomain | 文字列 | いいえ | このパラメーターを使用して、Recaptchaスクリプトの提供元となるドメイン名を送信します。 値は「www.google.com」 と 「www.recaptcha.net」のいずれかです。何をしているかを理解していない限り、このパラメーターを使用しないでください。 |
タスクソリューションオブジェクト
| プロパティ | タイプ | 目的 |
|---|---|---|
| gRecaptchaResponse | 文字列 | ターゲットウェブサイトで送信フォームでやり取りするために必要なトークン文字列です。 |
| userAgent | 文字列 | 作業員のブラウザのUser-Agent。応答トークンを送信するときに使用します。 |
レスポンス例
{
"errorId":0,
"status":"ready",
"solution":
{
"gRecaptchaResponse":"3AHJ_VuvYIBNBW5yyv0zRYJ75VkOKvhKj9_xGBJKnQimF72rfoq3Iy-DyGHMwLAo6a3",
"userAgent":"Mozilla\5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/145.0.0.0 Safari\/537.36"
},
"cost":"0.001500",
"ip":"46.98.54.221",
"createTime":1472205564,
"endTime":1472205570,
"solveCount":"0"
}