แก้ Google Enterprise V3
เนื่องจาก V3 Enterprise แตกต่างกับ V3 non-Enterprise เพียงเล็กน้อย เราจึงตัดสินใจรวมการรองรับไว้ในงาน V3 ทั่วไป
ความแตกต่างระหว่าง V3 Enterprise และ V3 non-Enterprise:
- โค้ดวิดเจ็ตโหลดผ่าน "enterprise.js" (vs "api.js")
- การเรียกดูคะแนนผู้ใช้ทำได้ด้วยการเรียก "grecaptcha.enterprise.execute" (vs "grecaptcha.execute")
ในการทำเครื่องหมายงาน Enterprise V3 ของคุณ เพียงแค่เพิ่มค่าสถานะ "isEnterprise": true ให้กับเพย์โหลด non-Enterprise 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 | สตริง | 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"
}