FunCaptchaTask#
Contournement de funCaptcha basé sur des jetons. La méthode est très similaire à
reCAPTCHA V2 .
API pour contourner FunCaptcha - méthode, exemples de code
FunCaptchaTaskProxyLess Structure de l'objet de tâche#
nom taper Requis Description type Chaîne Oui FunCaptchaTask
websiteURL Chaîne Oui L'URL complète de la page cible pour charger le code de vérification websitePublicKey Chaîne Oui Clé du site Web FunCaptcha. Peut être trouvé dans l'attribut data-pkey de l'élément div FunCaptcha data Chaîne Non paramètre data, vous pouvez le trouver dans la fonction d'initialisation de funCaptcha proxyType Chaîne Oui Type de proxy : `http`, `socks4`, `socks5` proxyAddress Chaîne Oui Adresse IP ou nom d'hôte du serveur proxy proxyPort Entier Oui port proxy proxyLogin Chaîne Non Connexion de l'agent proxyPassword Chaîne Non Mot de passe de l'agent
Exemple de demande#
Point de terminaison de l'API: https://api.nextcaptcha.com/createTask
méthode: POST
Type de contenu: application/json
{
"clientKey" : "api key" ,
"task" : {
"type" : "FunCaptchaTask" ,
"websiteURL" : "https://example.com" ,
"websitePublicKey" : "1321AA23-3128-1B8A-9AA2-A25A21123A34" ,
"data" : "{ \" blob \" : \" lkjas13jasf23.azoiu21klzcasd12UaoSsf.... \" }" ,
"proxyType" : "http" ,
"proxyAddress" : "your_proxy_address" ,
"proxyPort" : 1234 ,
"proxyLogin" : "your_proxy_login" ,
"proxyPassword" : "your_proxy_password"
}
}
Exemple de réponse#
{
"errorId" : 0 ,
"status" : "ready" ,
"solution" : {
"token" : "98017b84e6d33af83.1206263802|r=us-west-2|meta=3|meta_width=558|meta_height=523|metabgclr=transparent|metaiconclr=%23555555|guitextcolor=%23000000|lang=en|pk=2CB16598-CB82-4CF7-B332-5990DB66F3AB|at=40|ag=101|cdn_url=https%3A%2F%2Fclient-api.arkoselabs.com%2Fcdn%2Ffc|lurl=https%3A%2F%2Faudio-us-west-2.arkoselabs.com|surl=https%3A%2F%2Fclient-api.arkoselabs.com|smurl=https%3A%2F%2Fclient-api.arkoselabs.com%2Fcdn%2Ffc%2Fassets%2Fstyle-manager"
},
"createTime" : 1701234567890 ,
"endTime" : 1701234567890
}
Exemple de code#
# https://github.com/nextcaptcha/nextcaptcha-python
import os
import sys
from nextcaptcha import NextCaptchaAPI
client_key = os.getenv( 'NEXTCAPTCHA_KEY' , "YOUR_CLIENT_KEY" )
api = NextCaptchaAPI( client_key = client_key)
try :
result = api.funcaptcha( website_public_key = "WEBSITE_PUBLIC_KEY" )
except Exception as e:
sys.exit(e)
else :
sys.exit( 'solved: ' + str (result))
// https://github.com/nextcaptcha/nextcaptcha-go
package main
import (
" fmt "
" log "
" github.com/nextcaptcha/nextcaptcha-go "
)
func main () {
api := nextcaptcha. NewNextCaptchaAPI ( "API_KEY" )
result, err := api. FunCaptcha ( "WEBSITE_PUBLIC_KEY" , nextcaptcha . FunCaptchaOptions {})
if err != nil {
log. Fatal (err);
}
fmt. Println ( "result " + result)
}
// https://github.com/nextcaptcha/nextcaptcha-csharp
string clientKey = "YOUR_CLIENT_KEY" ;
string solftId = "" ; // Optional
string callbackUrl = "" ; // Optional
bool openLog = true ; // Optional
var nextCaptchaAPI = new NextCaptchaAPI (clientKey, solftId, callbackUrl, openLog);
string websitePublicKey = "YOUR_WEBSITE_PUBLIC_KEY" ;
string websiteUrl = "" ; // Optional
string data = "" ; // Optional
string proxyType = "" ; // Optional
string proxyAddress = "" ; // Optional
int proxyPort = 0 ; // Optional
string proxyLogin = "" ; // Optional
string proxyPassword = "" ; // Optional
var result = await nextCaptchaAPI. SolveFunCaptchaAsync (websitePublicKey, websiteUrl, data, proxyType, proxyAddress, proxyPort, proxyLogin, proxyPassword);
Liens connexes#