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

Class BinanceTask

src/capmonster_python/tasks/binance.py:8–31  ·  view source on GitHub ↗

Represents a Binance task to solve captcha challenges with a specific payload. Use only to log in with your account. Attributes: websiteURL: The address of the main page where the captcha is solved. websiteKey: A unique parameter for your website's section. validate

Source from the content-addressed store, hash-verified

6
7
8class BinanceTask(TaskPayload, UserAgentPayload):
9 """
10 Represents a Binance task to solve captcha challenges with a specific payload. Use only to log in with your account.
11
12 Attributes:
13 websiteURL: The address of the main page where the captcha is solved.
14 websiteKey: A unique parameter for your website's section.
15 validateId: A dynamic key representing the value of the parameter validateId, securityId, or
16 securityCheckResponseValidateId.
17 proxy: Optional proxy settings used for handling requests during captcha solving.
18 """
19 type: str = Field(default="BinanceTask", frozen=True)
20 websiteURL: str = Field(..., description="The address of the main page where the captcha is solved.")
21 websiteKey: str = Field(..., description="A unique parameter for your website's section.")
22 validateId: str = Field(..., description="A dynamic key. The value of the parameter validateId, securityId, "
23 "or securityCheckResponseValidateId.")
24 proxy: Optional[ProxyPayload] = Field(default=None, description="Proxy settings.")
25
26 def to_request(self) -> dict[str, Any]:
27 base = self.model_dump(exclude_none=True, by_alias=True)
28 proxy_dict = base.pop("proxy", {})
29 if proxy_dict:
30 base.update(proxy_dict)
31 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