capmonster-python docs

class ReCaptchaV2Task

class ReCaptchaV2Task

Constructor

ParameterTypeRequiredDefault valuePurpose
client_keyStringYes-Your unique key to solve captchas

Methods

create_task

ParameterTypeRequiredDefault valuePurpose
website_urlStringYes-Address of a webpage with Google ReCaptcha
website_keyStringYes-Recaptcha website key (div class="g-recaptcha" data-sitekey="THAT_ONE")
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
recaptcha_s_valueStringNo-Some custom implementations may contain additional "data-s" parameter in ReCaptcha2 div, which is in fact a one-time token and must be grabbed every time you want to solve a ReCaptcha2.

div class="g-recaptcha" data-sitekey="some sitekey" data-s="THIS_ONE"
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