Skip to content

Commit dc0643e

Browse files
author
Andrei
committed
Update serializer.py
1 parent 8a8a33c commit dc0643e

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

src/python3_capsolver/core/serializer.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class CaptchaOptionsSer(BaseModel):
7070

7171
class WebsiteDataOptionsSer(TaskSer):
7272
websiteURL: str = Field(..., description="Address of a webpage with Captcha")
73-
websiteKey: str = Field(..., description="Website key")
73+
websiteKey: Optional[str] = Field(None, description="Website key")
7474

7575

7676
class ReCaptchaV3Ser(WebsiteDataOptionsSer):
@@ -107,9 +107,11 @@ class FunCaptchaSer(TaskSer):
107107
)
108108

109109

110-
class DatadomeSliderOptionsSer(BaseModel):
110+
class DatadomeSliderSer(TaskSer):
111111
websiteURL: str = Field(..., description="Address of a webpage with DatadomeSlider")
112112
captchaUrl: str = Field(..., description="Captcha Url where is the captcha")
113+
proxy: str = Field(..., description="Proxy data")
114+
userAgent: str = Field(..., description="Browser's User-Agent which is used in emulation")
113115

114116

115117
class KasadaOptionsSer(BaseModel):
@@ -120,3 +122,10 @@ class KasadaOptionsSer(BaseModel):
120122
"This isn’t required if you are using proxies authenticated by IP",
121123
)
122124
proxyPassword: str = Field(..., description="This isn’t required if you are using proxies authenticated by IP")
125+
126+
127+
class CloudflareTurnstileSer(WebsiteDataOptionsSer):
128+
metadata: dict = Field(..., description="Extra data")
129+
html: Optional[str] = Field(
130+
None, description="You can pass in the entire html source code for the challenge directly."
131+
)

0 commit comments

Comments
 (0)