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
| 6 | |
| 7 | |
| 8 | class 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) |
no outgoing calls