@@ -115,6 +115,8 @@ class TwoCaptcha():
115115 Wrapper for solving Yidun captcha.
116116 hunt(self, pageurl, api_get_lib, **kwargs)
117117 Wrapper for solving Hunt captcha.
118+ alibaba(self, pageurl, scene_id, prefix, **kwargs)
119+ Wrapper for solving Alibaba captcha.
118120 solve(timeout=0, polling_interval=0, **kwargs)
119121 Sends CAPTCHA data and retrieves the result.
120122 balance()
@@ -1246,6 +1248,43 @@ def hunt(self, pageurl, api_get_lib, **kwargs):
12461248
12471249 return result
12481250
1251+ def alibaba (self , pageurl , scene_id , prefix , ** kwargs ):
1252+ '''Wrapper for solving Alibaba captcha.
1253+
1254+ Parameters
1255+ __________
1256+ pageurl : str
1257+ Full URL of the page with the captcha.
1258+ scene_id : str
1259+ Captcha scenario identifier.
1260+ prefix : str
1261+ Prefix from the captcha loading request subdomain.
1262+ user_id : str, optional
1263+ User or session identifier on the website.
1264+ user_user_id : str, optional
1265+ Additional user identifier.
1266+ verify_type : str, optional
1267+ Verification mechanism version or type.
1268+ region : str, optional
1269+ Captcha processing region.
1270+ user_certify_id : str, optional
1271+ Verification ID for the current captcha session.
1272+ api_get_lib : str, optional
1273+ URL of the Alibaba Captcha JS library.
1274+ useragent : str, optional
1275+ Browser User-Agent used to open the page.
1276+ proxy : dict, optional
1277+ {'type': 'HTTPS', 'uri': 'login:password@IP_address:PORT'}.
1278+ '''
1279+ result = self .solve (
1280+ method = "alibaba" ,
1281+ pageurl = pageurl ,
1282+ scene_id = scene_id ,
1283+ prefix = prefix ,
1284+ ** kwargs )
1285+
1286+ return result
1287+
12491288
12501289 def solve (self , timeout = 0 , polling_interval = 0 , ** kwargs ):
12511290 '''Sends captcha, receives result.
0 commit comments