حلکردن Google Enterprise V3
چون V3 Enterprise در واقع همان V3 غیرشرکتی است، ما تصمیم گرفتیم که پشتیبانی از آن را به وظایف معمول V3 گسترش دهیم.
تفاوت بین V3 Enterprise و V3 Non Enterprise:
- کد ویجت از طریق "enterprise.js" بارگذاری میشود (در مقابل "api.js")
- بازیابی امتیاز کاربر با صدازدن "grecaptcha.enterprise.execute" (در مقابل "grecaptcha.execute") انجام میشود.
برای این که وظیفه V3 خودتان را علامتگذاری کنید، فقط به اضافه کردن پرچم "isEnterprise" نیاز دارید: دقیقا به پیلود V3 غیر شرکتی خودتان.
Python
Node.js
Go
PHP
Java
C#
bash
چگونه reCaptcha V3 Enterprise را در Python حل کنیم
#pip3 install anticaptchaofficial
from anticaptchaofficial.recaptchav3enterpriseproxyless import *
solver = recaptchaV3EnterpriseProxyless()
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)
# user-agent in case you need it:
print("user-agent: "+solver.get_user_agent())
else:
print("task finished with error "+solver.error_code)شیء راهحل وظیفه
| خصوصیت | نوع | هدف |
|---|---|---|
| gRecaptchaResponse | رشته | رشته توکن که برای تعامل با فرم ارسال در وبسایت هدف لازم است. |
| userAgent | رشته | عامل کاربر مرورگر کارگر. هنگام ارسال توکن پاسخ از آن استفاده کنید. |
نمونه پاسخ
{
"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"
}