Capmonster or paid service?

  • Автор темы Автор темы krisztos
  • Дата начала Дата начала
There's no example for dbc. Their API is different as far as I remember when it comes to Recaptcha2. And as result they give back coordinates instead of numbers. If I'm not mistaken
 
It's one of the most common captchas now, I guess some easy to use solution like only pointing to the i'm a robot checkbox would be beneficially to all zp community. I guess now we have to play with C# code, I found there template:

Код:
Развернуть Свернуть Копировать
using DeathByCaptcha;

/* Put your DeathByCaptcha account username and password here.
Use HttpClient for HTTP API. */
Client client = (Client)new SocketClient(username, password);

try {
double balance = client.GetBalance();

/* Put your CAPTCHA file name, or file object,
or arbitrary stream, or an array of bytes,
and optional solving timeout (in seconds) here:
*/
Captcha captcha = client.Decode(captchaFileName, timeout);

/*
//Uploading captchas with type = 2 (Coordinates API)
Captcha captcha = client.Decode(captchaFileName, timeout,
new Hashtable (){
{ "type", 2 }
});
*/

/*
//Uploading captchas with type = 3 (Image Group API)
Captcha captcha = client.Decode(captchaFileName, timeout,
new Hashtable (){
{ "type", 3 },
{"banner_text", "Select all images with meat"},
{"banner", bannerFileName}
// if you want to specify grid data
//{"grid", "4x2"}
// In this example grid 4x2 is used, you should specify it according to uploaded image.
// If you wont supply grid parameter, dbc would attempt to autodetect proper grid.
});
*/

if (null != captcha) {
/* The CAPTCHA was solved; captcha.Id property holds
its numeric ID, and captcha.Text holds its text. */
Console.WriteLine("CAPTCHA {0} solved: {1}", captcha.Id,
captcha.Text);

if (/* check if the CAPTCHA was incorrectly solved */) {
client.Report(captcha);
}
}
} catch (AccessDeniedException e) {
/* Access to DBC API denied, check your credentials and/or balance */
}

Still I am not getting coordinates - I understand that when having them we can insert object mouse emulation and it will do the whole job? I am not sure what should be in place of captchaFileName - do we have to save every captcha to disk and point to it? Some template would help greatly.
 
You can mark any image as captcha and send it to service
You need to know in which additional parameter you have to include task text. It's possible to send additional parameters in standard action as well
 
I too am stumped with this (not able to put it together).

If someone is willing to create a solution, and sell it in the marketplace, I'd be willing to pay (and sure others would too).
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)