API

Base

class python_anticaptcha.base.AnticaptchaClient(client_key, language_pool='en', host='api.anti-captcha.com', use_ssl=True)[source]
APP_STAT_URL = '/getAppStats'
BALANCE_URL = '/getBalance'
CREATE_TASK_URL = '/createTask'
REPORT_IMAGE_URL = '/reportIncorrectImageCaptcha'
REPORT_RECAPTCHA_URL = '/reportIncorrectRecaptcha'
SOFT_ID = 847
TASK_RESULT_URL = '/getTaskResult'
client_ip
client_key = None
createTask(task)[source]
createTaskSmee(task, timeout=300)[source]

Beta method to stream response from smee.io

getAppStats(soft_id, mode)[source]
getBalance()[source]
getTaskResult(task_id)[source]
language_pool = 'en'
reportIncorrectImage(task_id)[source]
reportIncorrectRecaptcha(task_id)[source]
response_timeout = 5
class python_anticaptcha.base.Job(client, task_id)[source]
check_is_ready()[source]
client = None
get_answers()[source]
get_captcha_text()[source]
get_cells_numbers()[source]
get_solution_response()[source]
get_token_response()[source]
join(maximum_time=None)[source]
report_incorrect()[source]
report_incorrect_image()[source]
report_incorrect_recaptcha()[source]
task_id = None

Exceptions

exception python_anticaptcha.exceptions.AnticaptchaException(error_id, error_code, error_description, *args)[source]
python_anticaptcha.exceptions.AnticatpchaException

alias of python_anticaptcha.exceptions.AnticaptchaException

exception python_anticaptcha.exceptions.InvalidWidthException(width)[source]
exception python_anticaptcha.exceptions.MissingNameException(cls)[source]

Tasks

class python_anticaptcha.tasks.BaseTask[source]
serialize(**result)[source]
class python_anticaptcha.tasks.CustomCaptchaTask(imageUrl, form=None, assignment=None)[source]
assignment = None
form = None
imageUrl = None
serialize()[source]
type = 'CustomCaptchaTask'
class python_anticaptcha.tasks.FunCaptchaProxylessTask(website_url, website_key, *args, **kwargs)[source]
serialize(**result)[source]
type = 'FunCaptchaTaskProxyless'
websiteKey = None
websiteURL = None
class python_anticaptcha.tasks.FunCaptchaTask(*args, **kwargs)[source]
type = 'FunCaptchaTask'
class python_anticaptcha.tasks.HCaptchaTask(*args, **kwargs)[source]
type = 'HCaptchaTask'
class python_anticaptcha.tasks.HCaptchaTaskProxyless(website_url, website_key, *args, **kwargs)[source]
serialize(**result)[source]
type = 'HCaptchaTaskProxyless'
websiteKey = None
websiteURL = None
class python_anticaptcha.tasks.ImageToTextTask(fp, phrase=None, case=None, numeric=None, math=None, min_length=None, max_length=None)[source]
case = None
fp = None
math = None
maxLength = None
minLength = None
numeric = None
phrase = None
serialize()[source]
type = 'ImageToTextTask'
class python_anticaptcha.tasks.NoCaptchaTask(*args, **kwargs)[source]
type = 'NoCaptchaTask'
class python_anticaptcha.tasks.NoCaptchaTaskProxylessTask(website_url, website_key, website_s_token=None, is_invisible=None, recaptcha_data_s_value=None)[source]
recaptchaDataSValue = None
serialize()[source]
type = 'NoCaptchaTaskProxyless'
websiteKey = None
websiteSToken = None
websiteURL = None
class python_anticaptcha.tasks.ProxyMixin(*args, **kwargs)[source]
serialize(**result)[source]
class python_anticaptcha.tasks.RecaptchaV3TaskProxyless(website_url, website_key, min_score, page_action)[source]
minScore = None
pageAction = None
serialize()[source]
type = 'RecaptchaV3TaskProxyless'
websiteKey = None
websiteURL = None
class python_anticaptcha.tasks.SquareNetTask(fp, objectName, rowsCount, columnsCount)[source]
columnsCount = None
fp = None
objectName = None
rowsCount = None
serialize()[source]
type = 'SquareNetTask'

Fields

class python_anticaptcha.fields.BaseField[source]
label = None
labelHint = None
serialize(name=None)[source]
class python_anticaptcha.fields.Checkbox(text, label=None, labelHint=None)[source]
serialize(name=None)[source]
class python_anticaptcha.fields.Image(imageUrl, label=None, labelHint=None)[source]
contentType = 'image'
serialize(name=None)[source]
class python_anticaptcha.fields.ImageUpload(label=None, labelHint=None)[source]
serialize(name=None)[source]
class python_anticaptcha.fields.NameBaseField[source]
name = None
serialize(name=None)[source]
class python_anticaptcha.fields.Radio(label=None, choices=None, labelHint=None)[source]
type = 'radio'
class python_anticaptcha.fields.Select(label=None, choices=None, labelHint=None)[source]
get_choices()[source]
serialize(name=None)[source]
type = 'select'
class python_anticaptcha.fields.SimpleText(content, label=None, labelHint=None, width=None)[source]
contentType = 'text'
serialize(name=None)[source]
class python_anticaptcha.fields.TextInput(placeHolder=None, label=None, labelHint=None, width=None)[source]
serialize(name=None)[source]
class python_anticaptcha.fields.Textarea(placeHolder=None, rows=None, label=None, width=None, labelHint=None)[source]
serialize(name=None)[source]
contentType = 'link'
serialize(name=None)[source]