@@ -117,6 +117,8 @@ class TwoCaptcha():
117117 Wrapper for solving Hunt captcha.
118118 alibaba(self, pageurl, scene_id, prefix, **kwargs)
119119 Wrapper for solving Alibaba captcha.
120+ tspd(self, pageurl, tspd_cookie, html_page_base64, proxy, **kwargs)
121+ Wrapper for solving TSPD captcha.
120122 solve(timeout=0, polling_interval=0, **kwargs)
121123 Sends CAPTCHA data and retrieves the result.
122124 balance()
@@ -1285,6 +1287,32 @@ def alibaba(self, pageurl, scene_id, prefix, **kwargs):
12851287
12861288 return result
12871289
1290+ def tspd (self , pageurl , tspd_cookie , html_page_base64 , proxy , ** kwargs ):
1291+ '''Wrapper for solving TSPD captcha.
1292+
1293+ Parameters
1294+ __________
1295+ pageurl : str
1296+ Full URL of the page with the captcha.
1297+ tspd_cookie : str
1298+ Cookies received on the TSPD challenge page.
1299+ html_page_base64 : str
1300+ Full HTML of the challenge page, Base64 encoded.
1301+ proxy : dict
1302+ {'type': 'HTTPS', 'uri': 'login:password@IP_address:PORT'}.
1303+ useragent : str, optional
1304+ Browser User-Agent. We recommend sending a valid Windows browser string.
1305+ '''
1306+ result = self .solve (
1307+ method = "tspd" ,
1308+ pageurl = pageurl ,
1309+ tspd_cookie = tspd_cookie ,
1310+ html_page_base64 = html_page_base64 ,
1311+ proxy = proxy ,
1312+ ** kwargs )
1313+
1314+ return result
1315+
12881316
12891317 def solve (self , timeout = 0 , polling_interval = 0 , ** kwargs ):
12901318 '''Sends captcha, receives result.
0 commit comments