Control

To import this module:

from python_rucaptcha.control import Control
class python_rucaptcha.control.Control(*args, **kwargs)
__init__(*args, **kwargs)

The class is used to work with RuCaptcha control methods.

Parameters:

action – Control action type

Examples

>>> Control(rucaptcha_key="aa9.....").getBalance()
{
    'balance': 1593.4479
}
>>> await Control(rucaptcha_key="aa9.....").aio_getBalance()
{
    'balance': 1593.4479
}
>>> Control(rucaptcha_key="aa9.....").reportCorrect(id=75188571838)
{
    'errorId': 0,
    'status': 'success'
}
>>> await Control(rucaptcha_key="aa9.....").aio_reportCorrect(id=75188571838)
{
    'errorId': 0,
    'status': 'success'
}
>>> Control(rucaptcha_key="aa9.....").reportIncorrect(id=75188571838)
{
    'errorId': 0,
    'status': 'success'
}
>>> await Control(rucaptcha_key="aa9.....").aio_reportIncorrect(id=75188571838)
{
    'errorId': 0,
    'status': 'success'
}
Returns:

Dict with full server response

reportCorrect(id: int) dict

reportCorrect method

Parameters:

id (int) – Captcha task ID

Returns:

Dict with full server response

Return type:

dict

async aio_reportCorrect(id: int) dict

Captcha results report

Parameters:

id (int) – Captcha task ID

Returns:

Dict with full server response

Return type:

dict

reportIncorrect(id: int) dict

reportCorrect method

Parameters:

id (int) – Captcha task ID

Returns:

Dict with full server response

Return type:

dict

async aio_reportIncorrect(id: int) dict

Captcha results report

Parameters:

id (int) – Captcha task ID

Returns:

Dict with full server response

Return type:

dict

getBalance() dict

GetBalance method

Returns:

Dict with full server response

Return type:

dict

Notes

Check class docstirng for more info

async aio_getBalance() dict

Async GetBalance method

Returns:

Dict with full server response

Return type:

dict

Notes

Check class docstirng for more info