Risolvi Google Recaptcha V2 Enterprise con un proxy
Questo tipo di attività è per risolvere Google Recaptcha Enterprise V2 usando il proxy fornito.
È perlopiù simile a RecaptchaV2Task, tranne per il fatto che le attività vengono risolte usando l'Enterprise API e assegnate agli operatori con il miglior punteggio Recaptcha V3.

Esempio Recaptcha V2 Enterprise. Dal punto di vista visivo è identico alla versione non-enterprise.
Python
Node.js
PHP
Java
C#
bash
Come risolvere Recaptcha V2 Enterprise proxy-on in Python
#pip3 install anticaptchaofficial
from anticaptchaofficial.recaptchav2enterpriseproxyon import *
solver = recaptchaV2EnterpriseProxyon()
solver.set_verbose(1)
solver.set_key("YOUR_API_KEY_HERE")
# solver.set_enterprise_payload({"s": "sometoken"})
solver.set_website_url("https://website.com")
solver.set_website_key("SITE_KEY")
solver.set_proxy_address("PROXY_ADDRESS")
solver.set_proxy_port(1234)
solver.set_proxy_login("proxylogin")
solver.set_proxy_password("proxypassword")
solver.set_user_agent("Mozilla/5.0")
solver.set_cookies("test=true")
# 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)Oggetto attività
| Proprietà | Tipo | Richiesto | Scopo |
|---|---|---|---|
| type | Stringa | Sì | RecaptchaV2EnterpriseTask |
| websiteURL | Stringa | Sì | Indirizzo di una pagina web target. Può trovarsi in qualsiasi punto del sito web, anche nell'area riservata. I nostri operatori non navigano in quest'area, ma simulano la visita. |
| websiteKey | Stringa | Sì | Chiave del sito Recaptcha. Scopri come trovarlo in questo articolo. |
| enterprisePayload | Oggetto | No | Parametri aggiuntivi opzionali che possono essere passati al metodo "grecaptcha.enterprise.render" insieme alla sitekey. Esempio di ciò che potresti cercare: |
| apiDomain | Stringa | No | Usa questo parametro per inviare il nome del dominio dal quale lo script Recaptcha dovrebbe essere servito. Può avere solo uno dei due valori: "www.google.com" o "www.recaptcha.net". Non usare questo parametro a meno che tu sappia ciò che stai facendo. |
| proxyType | Stringa | Sì | Tipo di proxy http - tipico proxy http/https socks4 - proxy socks4 socks5 - proxy socks5 |
| proxyAddress | Stringa | Sì | Indirizzo IP proxy ipv4/ipv6. Nessun host name o indirizzo IP dalle reti locali. |
| proxyPort | Intero | Sì | Porta proxy |
| proxyLogin | Stringa | Sì | Login per proxy che richiede un'autorizzazione (base) |
| proxyPassword | Stringa | Sì | Password proxy |
| userAgent | Stringa | Sì | User-Agent del browser usato in emulazione. Devi usare una firma di un browser moderno; altrimenti Google ti chiederà di "aggiornare il tuo browser". |
| cookies | Stringa | No | Cookie aggiuntivi che dovremmo usare nei dominii Google. |
Oggetto soluzione attività
| Proprietà | Tipo | Scopo |
|---|---|---|
| gRecaptchaResponse | Stringa | Stringa token richiesta per interagire con l'evento submit sul sito web target. |
| userAgent | Stringa | User-Agent del browser dell'operatore. Usalo quando invii il token di risposta. |
Esempio di risposta
{
"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"
}