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

Class DataDomeTask

src/capmonster_python/tasks/datadome.py:41–62  ·  view source on GitHub ↗

Represents a task payload for solving captchas on the DataDome platform. Attributes: websiteURL: A string that contains the address of the page where the captcha is solved. proxy: Optional proxy settings, represented as a ProxyPayload. Defaults to None. metadata: Ad

Source from the content-addressed store, hash-verified

39
40
41class DataDomeTask(TaskPayload, UserAgentPayload):
42 """
43 Represents a task payload for solving captchas on the DataDome platform.
44
45 Attributes:
46 websiteURL: A string that contains the address of the page where the captcha is solved.
47 proxy: Optional proxy settings, represented as a ProxyPayload. Defaults to None.
48 metadata: Additional metadata about the captcha, represented as a DataDomeMetadata.
49 Defaults to None.
50 """
51 type: str = Field(default="CustomTask", frozen=True)
52 class_: str = Field(default="DataDome", alias="class", frozen=True)
53 websiteURL: str = Field(..., description="Address of the page on which the captcha is solved.")
54 proxy: Optional[ProxyPayload] = Field(default=None, description="Proxy settings.")
55 metadata: DataDomeMetadata = Field(default=None, description="Additional data about the captcha.")
56
57 def to_request(self) -> dict[str, Any]:
58 base = self.model_dump(exclude_none=True, by_alias=True)
59 proxy_dict = base.pop("proxy", {})
60 if proxy_dict:
61 base.update(proxy_dict)
62 return base

Callers 3

test_to_requestFunction · 0.90
test_create_taskFunction · 0.90
test_create_task_asyncFunction · 0.90

Calls

no outgoing calls

Tested by 3

test_to_requestFunction · 0.72
test_create_taskFunction · 0.72
test_create_task_asyncFunction · 0.72