1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to create a deathbycaptcha desktop app ?

Discussion in 'PHP & Perl' started by stallion45d, Jan 17, 2015.

  1. stallion45d

    stallion45d Power Member

    Joined:
    Oct 11, 2011
    Messages:
    502
    Likes Received:
    330
    Gender:
    Male
    Hi, I use deathbycaptcha for captcha solving. I would like to create some kind of desktop app . On their site they give these steps:

    How to use our API clients

    Download the latest client, add it to your application and write something along the lines below, f.i in PHP:
    require_once 'deathbycaptcha.php';

    // Put your DBC credentials here.
    // Use DeathByCaptcha_HttpClient class if you want to use HTTP API.
    $client = new DeathByCaptcha_SocketClient(USERNAME, PASSWORD);

    // Put the CAPTCHA file name or handler, and desired timeout (in seconds) here:
    if ($captcha = $client->decode(CAPTCHA_FILE_NAME, TIMEOUT)) {
    echo $captcha['text'] . "\n";

    // Report the CAPTCHA if solved incorrectly.
    // Make sure the CAPTCHA was in fact incorrectly solved!
    if ( ... ) {
    $client->report($captcha['captcha']);
    }
    }

    // Repeat for other CAPTCHAs


    I am totally lost as my programming skills about this equal to 0. Could anyone help me?

    thanks in advance.
     
  2. nocare

    nocare Junior Member

    Joined:
    Apr 29, 2013
    Messages:
    164
    Likes Received:
    81
    Location:
    Deep Code
    Running the script using php-cli.
    Fill in your details for the service. Should be good to go I guess.
     
  3. johntyphon

    johntyphon Newbie

    Joined:
    Nov 29, 2014
    Messages:
    14
    Likes Received:
    0
    Maybe python will be a better choice for an application which will run under windows. The php "world" it's not agreeing about running on windows, even if that's possible.