Skip to content

chancity/CSharp.AntiCaptcha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSharp.AntiCaptcha

C# AntiCaptcha library

//Change solution use limit
AntiCaptchaGlobals.CaptchaRetryLimit = 10;
AntiCaptchaGlobals.SoftId = 913;

//Add a key, add as many as you'd like the load balancer will roundrobin between keys
AntiCaptchaLoadBalancer.AddKey(new AntiCaptchaKey("your anti captcha key"));
AntiCaptchaLoadBalancer.AddKey(new AntiCaptchaKey("your anti captcha key"));

//get key from pool
var keyFromPool = AntiCaptchaLoadBalancer.GetValidAntiCaptchaKey()

//create key
var key = new AntiCaptchaKey("your anti captcha key");

//View balance
var keyBalance = key.AntiCaptchaBalance;

//View queue statistics
AntiCaptchaGlobals.SelectedQueueStats = QueueIdEnum.RecaptchaProxyless;
var statistics = AntiCaptchaGlobals.GetStatsForSelectedQueue();

//Solve with key
var solutionUsingKey = await key.GetSolvedCaptcha(new NoCaptchaTaskProxyless("https://someurl.com", "google public key"));

//Solve with load balancer, this will reuse captcha responses that were added back into the queue
var solutionUsingLoadBalancer = await AntiCaptchaLoadBalancer.GetSolvedCaptcha(new NoCaptchaTaskProxyless("https://someurl.com", "google public key"));

//Requeue a captcha that wasn't used
AntiCaptchaLoadBalancer.EnqueueResponse(solutionUsingLoadBalancer);

About

C# AntiCaptcha library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages