Blog

Stratux
European Edition | 4/4/2024

As many may know, I have taken over responsibility for the Stratux traffic alerting system ... Read More

AutoWWW 1.1 Released
11/9/2014 | Comments: 2

AutoWWW 1.1 has just been released for Linux. Windows builds do not exist yet, but ... Read More

Backups done right
8/12/2013

Since this is a Blog, I've decided that I should start using it as such and therefore, ... Read More

More Blog Entries

Captcha API

The Captcha API provides easy access to the captcha sharing service 9kw.eu, where you can solve a few captchas when you have the time and can therefore let other users solve captchas for you when you don't have time/at night.

To use the service, you need to register an account there. Then go to http://www.9kw.eu/userapi.html to find out your API key. AutoWWW needs this key to use your account for solving captchas.

Import the captcha API by typing "import captcha_9kwEu" in the script window.

The captcha API provides the following functions:

captcha_9kwEu.set_api_key(key)

The first thing you need to do to use the captcha api is to give it your API key with this function. Call it right after the import-line.

captcha_9kwEu.get_balance()

Returns the number of points you have on 9kw.eu.

captcha_9kwEu.solve_captcha(path)

Uploads the captcha that's saved in 'path' to the service and waits until the captcha is solved. It then returns the solution to the captcha (this function can take several seconds).

In most cases, this function is used with browser.save_image() or browser.save_as_image().
So you can save the desired image to your harddisk and then upload it with this function.

captcha_9kwEu.captcha_correct(correct)

After solving a captcha, you should call this function to tell the service if the provided solution was correct. Calling this is not absolutely required, but can help you save points. Call it with True if the solution was correct. Call it with False if it wasn't.