A C# library solving captcha through provided service.
Declare a CaptchaSolver and initialize with your service.
CaptchaSolver? captchaSolver;
Console.WriteLine("Choose how auto work:");
Console.WriteLine("1) Solve from 2Captcha");
Console.WriteLine("2) Solve from AntiCaptcha");
Console.Write("\r\nSelect an option: ");
var choice = Console.ReadLine();
switch (choice)
{
case "1":
captchaSolver = new TwoCaptcha(CaptchaUtil.TWO_CAPTCHA_KEY);
break;
case "2":
captchaSolver = new AntiCaptcha(CaptchaUtil.ANTI_CAPTCHA_KEY);
break;
default:
Console.WriteLine("Please select an option !");
return;
}
Example of sending a request
switch (solver)
{
case TwoCaptcha twoCaptcha:
{
var queryParams = new NameValueCollection
{
{ "your data", token },
};
twoCaptcha.QueryParams = queryParams;
}
break;
case AntiCaptcha antiCaptcha:
{
Dictionary<string, string> paramsBody = new()
{
{ "your data", token }
};
var task = new AntiCaptchaTask("RecaptchaV2EnterpriseTaskProxyless", Util.SIGN_UP, challenge.sitekey, paramsBody);
var request = new AntiCaptchaRequest(ANTI_CAPTCHA_KEY, task);
antiCaptcha.Request = request;
}
break;
}
var taskReceive = await captchaSolver.SendCaptchaAsync();
Contributions, issues and feature requests are welcome.
Feel free to check issues page and make pull request if you want to contribute.
๐ค TRUONG DAT NHAN (Zeteo)
- Github: @truongdatnhan
- LinkedIn: Nhan Truong Dat
- Personal Website: Store Linh Tinh
Copyright ยฉ 2019 Truong Dat Nhan.
This project is MIT licensed.
This README was generated with โค๏ธ by readme-md-generator