capmonster-python docs
class ReCaptchaV2Task
class ReCaptchaV2Task
Constructor
Parameter | Type | Required | Default value | Purpose |
---|---|---|---|---|
client_key | String | Yes | - | Your unique key to solve captchas |
Methods
create_task
Parameter | Type | Required | Default value | Purpose |
---|---|---|---|---|
website_url | String | Yes | - | Address of a webpage with Google ReCaptcha |
website_key | String | Yes | - | Recaptcha website key (div class="g-recaptcha" data-sitekey="THAT_ONE") |
cookies | Dict, List, String | No | - | 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_value | String | No | - | 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_cache | Boolean | No | - | 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.