MCPcopy Create free account
hub / github.com/alperensert/capmonster_python / RecaptchaV3Task

Class RecaptchaV3Task

src/capmonster_python/tasks/recaptcha_v3.py:8–34  ·  view source on GitHub ↗

Represents a task for solving Google reCAPTCHA v3 without using a proxy. Attributes: websiteURL: Address of the webpage that contains the reCAPTCHA to be solved. websiteKey: The specific site key corresponding to the reCAPTCHA on the target website. minScore: Define

Source from the content-addressed store, hash-verified

6
7
8class RecaptchaV3Task(TaskPayload):
9 """
10 Represents a task for solving Google reCAPTCHA v3 without using a proxy.
11
12 Attributes:
13 websiteURL: Address of the webpage that contains the reCAPTCHA to be solved.
14 websiteKey: The specific site key corresponding to the reCAPTCHA on the target website.
15 minScore: Defines the minimum acceptable score required for the captcha
16 result, ranging between 0.1 and 0.9. Setting this helps filter the quality of
17 the solution response.
18 pageAction: Specifies the widget action value, typically indicating what
19 the user action represents on the page. This value is set by the website owner.
20 """
21 type: str = Field(default="RecaptchaV3TaskProxyless", frozen=True)
22 websiteURL: str = Field(..., description='Address of a webpage with captcha.')
23 websiteKey: str = Field(..., description='reCAPTCHA website key.')
24 minScore: Optional[float] = Field(default=None, description='Minimum score of a captcha.', ge=0.1, le=0.9)
25 pageAction: Optional[str] = Field(default=None,
26 description='Widget action value. Website owner defines what user is doing on '
27 'the page through this parameter. Default value: verify')
28 isEnterprise: Optional[bool] = Field(default=None,
29 description='Set to true to solve as Enterprise (equivalent to RecaptchaV3EnterpriseTask).')
30 nocache: Optional[bool] = Field(default=None,
31 description='Set to true to force fresh token generation (prevents reuse of cached tokens).')
32
33 def to_request(self) -> dict[str, Any]:
34 return self.model_dump(exclude_none=True)

Calls

no outgoing calls