You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Represents a payload structure for solving Alibaba custom captcha challenges.
14
+
15
+
Attributes:
16
+
captchaClass: The constant string value identifying the captcha
17
+
class as "alibaba".
18
+
metadata: A dictionary of Alibaba-specific parameters. Requires sceneId
19
+
and prefix; userId, userUserId, verifyType, region, UserCertifyId,
20
+
apiGetLib, and cookieRequired are optional, needed only for sites
21
+
that use them.
22
+
"""
23
+
captchaClass: str=Field(default='alibaba', description='The constant string value identifying the captcha class as "alibaba".')
24
+
metadata: Dict[str, Union[str, bool]] =Field(..., description='A dictionary of Alibaba-specific parameters. Requires sceneId and prefix; userId, userUserId, verifyType, region, UserCertifyId, apiGetLib, and cookieRequired are optional, needed only for sites that use them.')
required; context and iv must be empty strings; websiteKey and
17
+
captchaScript must not be set.
18
+
19
+
Attributes:
20
+
type: The constant string value identifying the task type as "AmazonTask".
21
+
websiteUrl: The URL of the webpage where the Amazon AWS WAF challenge
22
+
is presented.
23
+
challengeScript: Link to challenge.js served by AWS WAF on the target
24
+
page. Required for Options 2 and 3; must not be set for Option 1.
25
+
captchaScript: Link to captcha.js / jsapi.js served by AWS WAF on the
26
+
target page. Required for Option 1, optional for Option 2, must
27
+
not be set for Option 3.
28
+
websiteKey: The site key associated with the AWS WAF challenge.
29
+
Required for Options 1 and 2; must not be set for Option 3.
30
+
context: The context token provided by AWS WAF, used to correlate
31
+
the challenge with a specific session. Required for Option 2;
32
+
must be an empty string for Option 3; must not be set for Option 1.
33
+
iv: The initialization vector value provided by AWS WAF as part
34
+
of the challenge payload. Required for Option 2; must be an
35
+
empty string for Option 3; must not be set for Option 1.
36
+
cookieSolution: When set to True, requests the solution to be
37
+
returned as a ready-to-use cookie instead of a token.
38
+
userAgent: Browser User-Agent to emulate. Only used for Option 1.
39
+
Pass only a current Windows OS UA.
40
+
"""
41
+
type: str=Field(default='AmazonTask', description='The constant string value identifying the task type as "AmazonTask".')
42
+
websiteUrl: str=Field(..., description='The URL of the webpage where the Amazon AWS WAF challenge is presented.')
43
+
challengeScript: Optional[str] =Field(default=None, description='Link to challenge.js served by AWS WAF on the target page. Required for Options 2 and 3; must not be set for Option 1.')
44
+
captchaScript: Optional[str] =Field(default=None, description='Link to captcha.js / jsapi.js served by AWS WAF on the target page. Required for Option 1, optional for Option 2, must not be set for Option 3.')
45
+
websiteKey: Optional[str] =Field(default=None, description='The site key associated with the AWS WAF challenge. Required for Options 1 and 2; must not be set for Option 3.')
46
+
context: Optional[str] =Field(default=None, description='The context token provided by AWS WAF, used to correlate the challenge with a specific session. Required for Option 2; must be an empty string for Option 3; must not be set for Option 1.')
47
+
iv: Optional[str] =Field(default=None, description='The initialization vector value provided by AWS WAF as part of the challenge payload. Required for Option 2; must be an empty string for Option 3; must not be set for Option 1.')
48
+
cookieSolution: Optional[bool] =Field(default=None, description='When set to True, requests the solution to be returned as a ready-to-use cookie instead of a token.')
49
+
userAgent: Optional[str] =Field(default=None, description='Browser User-Agent to emulate. Only used for Option 1. Pass only a current Windows OS UA.')
50
+
51
+
@model_validator(mode='after')
52
+
defvalidate_amazon_waf_variant(self):
53
+
ifself.challengeScriptisNone:
54
+
# Option 1: visible captcha, no challenge.js involved.
Represents a payload structure for solving Castle challenges via a custom task.
9
+
10
+
Attributes:
11
+
captchaClass: The constant string value identifying the captcha
12
+
class as "Castle".
13
+
websiteKey: The site key associated with the Castle challenge on the
14
+
webpage.
15
+
metadata: A dictionary of additional parameters required to solve the
16
+
challenge, including the worker script URL (wUrl), service worker
17
+
URL (swUrl), and an optional request count (count).
18
+
"""
19
+
captchaClass: str=Field(default='Castle', description='The constant string value identifying the captcha class as "Castle".')
20
+
websiteKey: str=Field(description='The site key associated with the Castle challenge on the webpage.')
21
+
metadata: Dict[str, Union[str, int]] =Field(description='A dictionary of additional parameters required to solve the challenge, including the worker script URL (wUrl), service worker URL (swUrl), and an optional request count (count).')
Represents a payload structure for solving DataDome custom challenges.
8
+
9
+
Attributes:
10
+
captchaClass: The constant string value identifying the captcha
11
+
class as "DataDome".
12
+
metadata: A dictionary carrying DataDome-specific challenge data:
13
+
the required captchaUrl and datadomeCookie, plus the optional
14
+
datadomeVersion.
15
+
proxy: Proxy settings to route the request through. Required for
16
+
this task type — DataDome will not solve without your own proxy.
17
+
"""
18
+
captchaClass: str=Field(default='DataDome', description='The constant string value identifying the captcha class as "DataDome".')
19
+
metadata : Dict[str, str] =Field(..., description='A dictionary carrying DataDome-specific challenge data: the required captchaUrl and datadomeCookie, plus the optional datadomeVersion.')
0 commit comments