Skip to content

Commit 0c4bc42

Browse files
author
nextcaptcha
committed
add htmlPageBase64
1 parent 14a8c81 commit 0c4bc42

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

nextcaptcha/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44

55

6-
__version__ = '1.1.4'
6+
__version__ = '1.1.5'

nextcaptcha/next.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,8 @@ def hcaptcha_enterprise(self, website_url: str, website_key: str, enterprise_pay
339339
return self.api._send(task)
340340

341341
def turnstile(self, website_url: str, website_key: str, action: str = "", data: str = "", pagedata: str = "",
342-
proxy_type: str = "", proxy_address: str = "", proxy_port: int = 0, proxy_login: str = "",
342+
htmlPageBase64:str = "",proxy_type: str = "", proxy_address: str = "", proxy_port: int = 0,
343+
proxy_login: str = "",
343344
proxy_password: str = "") -> dict:
344345
"""
345346
Solve Cloudflare Turnstile challenge.
@@ -362,11 +363,13 @@ def turnstile(self, website_url: str, website_key: str, action: str = "", data:
362363
"websiteKey": website_key,
363364
}
364365
if action:
365-
task["action"] = action
366+
task["pageAction"] = action
366367
if data:
367368
task["data"] = data
368369
if pagedata:
369370
task["pagedata"] = pagedata
371+
if htmlPageBase64:
372+
task["htmlPageBase64"] = htmlPageBase64
370373
if proxy_address:
371374
task["type"] = TURNSTILE_TYPE
372375
task["proxyType"] = proxy_type

0 commit comments

Comments
 (0)