capmonster-python docs

class HCaptchaTask

class HCaptchaTask

Constructor

ParameterTypeRequiredDefault valuePurpose
client_keyStringYes-Your unique key to solve captchas

Methods

create_task

ParameterTypeRequiredDefault valuePurpose
website_urlStringYes-Address of a webpage with hCaptcha
website_keyStringYes-hCaptcha website key
is_invisibleBooleanNo-Use True for invisible version of hcaptcha
custom_dataStringNo-Custom data that is used in some implementations of hCaptcha, mostly with isInvisible=true. In most cases you see it as rqdata inside network requests

IMPORTANT: You MUST provide an user agent if you submit captcha with data parameter. The value should match the user agent you use when interacting with the target website.
cookiesDict, List, StringNo-Additional cookies which we must use during interaction with target page or Google

If you are pass the cookies as string, here is the format: cookiename1=cookievalue1; cookiename2=cookievalue2
no_cacheBooleanNo-You receive a token, send it to the site, but the site rejects it. Moreover, sometimes the site can accept a token, e.g. in one case out of 10 (the percentage of success in your case may be different)

Inherited methods

  • See Capmonster class for inherited methods.
  • See Proxy class for inherited methods.
  • See UserAgent class for inherited methods.
Edit this page on GitHub