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

Class BasiliskTask

src/capmonster_python/tasks/basilisk.py:8–24  ·  view source on GitHub ↗

BasiliskTask represents a specific task payload used for solving captcha on a given website. Attributes: websiteURL (str): The address of the main page where the captcha is solved. websiteKey (str): Can be found in the html code in the attribute data-sitekey of the captcha

Source from the content-addressed store, hash-verified

6
7
8class BasiliskTask(TaskPayload, UserAgentPayload):
9 """
10 BasiliskTask represents a specific task payload used for solving captcha on a given website.
11
12 Attributes:
13 websiteURL (str): The address of the main page where the captcha is solved.
14 websiteKey (str): Can be found in the html code in the attribute data-sitekey of the captcha container or in
15 the payload of a POST request to the https://basiliskcaptcha.com/challenge/check-site in the field site_key.
16 """
17 type: str = Field(default="CustomTask", frozen=True)
18 class_: str = Field(default="Basilisk", alias="class", frozen=True)
19 websiteURL: str = Field(..., description="The address of the main page where the captcha is solved.")
20 websiteKey: str = Field(...,
21 description="Can be found in the html code in the attribute data-sitekey of the captcha container.")
22
23 def to_request(self) -> dict[str, Any]:
24 return self.model_dump(exclude_none=True, by_alias=True)

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