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()[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.AntiGateTask(*args, **kwargs)[source]
class python_anticaptcha.tasks.AntiGateTaskProxyless(website_url, template_name, variables, *args, **kwargs)[source]
serialize(**result)[source]
templateName = None
type = 'AntiGateTask'
variables = None
websiteURL = None
class python_anticaptcha.tasks.BaseTask[source]
serialize(**result)[source]
type = None
class python_anticaptcha.tasks.CookieMixin(*args, **kwargs)[source]
serialize(**result)[source]
class python_anticaptcha.tasks.FunCaptchaProxylessTask(website_url, website_key, subdomain=None, data=None, *args, **kwargs)[source]
data = None
funcaptchaApiJSSubdomain = None
serialize(**result)[source]
type = 'FunCaptchaTaskProxyless'
websiteKey = None
websiteURL = None
class python_anticaptcha.tasks.FunCaptchaTask(*args, **kwargs)[source]
type = 'FunCaptchaTask'
class python_anticaptcha.tasks.GeeTestTask(*args, **kwargs)[source]
class python_anticaptcha.tasks.GeeTestTaskProxyless(website_url, gt, challenge, subdomain=None, lib=None, *args, **kwargs)[source]
challenge = None
geetestApiServerSubdomain = None
geetestGetLib = None
gt = None
serialize(**result)[source]
type = 'GeeTestTaskProxyless'
websiteURL = None
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, comment=None, website_url=None, *args, **kwargs)[source]
case = None
comment = None
fp = None
math = None
maxLength = None
minLength = None
numeric = None
phrase = None
serialize(**result)[source]
type = 'ImageToTextTask'
websiteUrl = None
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, *args, **kwargs)[source]
recaptchaDataSValue = None
serialize(**result)[source]
type = 'NoCaptchaTaskProxyless'
websiteKey = None
websiteSToken = None
websiteURL = None
class python_anticaptcha.tasks.ProxyMixin(*args, **kwargs)[source]
serialize(**result)[source]
class python_anticaptcha.tasks.RecaptchaV2EnterpriseTask(*args, **kwargs)[source]
type = 'RecaptchaV2EnterpriseTask'
class python_anticaptcha.tasks.RecaptchaV2EnterpriseTaskProxyless(website_url, website_key, enterprise_payload, api_domain, *args, **kwargs)[source]
apiDomain = None
enterprisePayload = None
serialize(**result)[source]
type = 'RecaptchaV2EnterpriseTaskProxyless'
websiteKey = None
websiteURL = None
class python_anticaptcha.tasks.RecaptchaV2Task(*args, **kwargs)[source]
type = 'RecaptchaV2Task'
class python_anticaptcha.tasks.RecaptchaV2TaskProxyless(website_url, website_key, website_s_token=None, is_invisible=None, recaptcha_data_s_value=None, *args, **kwargs)[source]
type = 'RecaptchaV2TaskProxyless'
class python_anticaptcha.tasks.RecaptchaV3TaskProxyless(website_url, website_key, min_score, page_action, is_enterprise=False, *args, **kwargs)[source]
isEnterprise = False
minScore = None
pageAction = None
serialize(**result)[source]
type = 'RecaptchaV3TaskProxyless'
websiteKey = None
websiteURL = None
class python_anticaptcha.tasks.UserAgentMixin(*args, **kwargs)[source]
serialize(**result)[source]