2captcha-python 2.0.7__tar.gz → 2.0.9__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: 2captcha-python
3
- Version: 2.0.7
3
+ Version: 2.0.9
4
4
  Summary: Python module for easy integration with 2Captcha API
5
5
  Home-page: https://github.com/2captcha/2captcha-python/
6
6
  Author: 2Captcha
7
7
  Author-email: info@2captcha.com
8
- Keywords: 2captcha,captcha,api,captcha solver,reCAPTCHA,FunCaptcha,Geetest,image captcha,Coordinates,Click Captcha,Geetest V4,Lemin captcha,Amazon WAF,Cloudflare Turnstile,Capy Puzzle,MTCaptcha,Friendly Captcha,Tencent,Cutcaptcha,DataDome,VK Captcha,CaptchaFox,Prosopo,cybersiara
8
+ Keywords: 2captcha,captcha,api,captcha solver,reCAPTCHA,FunCaptcha,Geetest,image captcha,Coordinates,Click Captcha,Geetest V4,Lemin captcha,Amazon WAF,Cloudflare Turnstile,Capy Puzzle,MTCaptcha,Friendly Captcha,Tencent,Cutcaptcha,DataDome,VK Captcha,CaptchaFox,Prosopo,cybersiara,Hunt,Alibaba,TSPD,Basilisk
9
9
  Classifier: Programming Language :: Python :: 3
10
10
  Classifier: License :: OSI Approved :: MIT License
11
11
  Classifier: Operating System :: OS Independent
@@ -83,6 +83,11 @@ Examples of API requests for different captcha types are available on the [Pytho
83
83
  - [CyberSiARA](#cybersiara)
84
84
  - [Altcha Captcha](#altcha-Captcha)
85
85
  - [Binance](#binance)
86
+ - [Yidun](#yidun)
87
+ - [Hunt](#hunt)
88
+ - [Alibaba](#alibaba)
89
+ - [TSPD](#tspd)
90
+ - [Basilisk](#basilisk)
86
91
  - [Other methods](#other-methods)
87
92
  - [send / get\_result](#send--get_result)
88
93
  - [balance](#balance)
@@ -581,6 +586,64 @@ result = solver.binance(sitekey='register',
581
586
  validate_id='e20c622fa9384952832fc1c2a6b75c0a',)
582
587
  ```
583
588
 
589
+ ### Yidun
590
+
591
+ <sup>[API method description.](https://2captcha.com/2captcha-api#yidun)</sup>
592
+
593
+ Use this method to solve Yidun - NECaptcha. Returns a token.
594
+ ```python
595
+ result = solver.yidun(sitekey='6b4d7e0c4f5a4c7db2f3a1e8c9d6f123',
596
+ pageurl='https://mysite.com/page/with/yadun',
597
+ )
598
+ ```
599
+
600
+ ### Hunt
601
+
602
+ <sup>[API method description.](https://2captcha.com/2captcha-api#hunt)</sup>
603
+
604
+ Use this method to solve Hunt captcha. Returns a token.
605
+ ```python
606
+ result = solver.hunt(pageurl='https://example.com/page-with-hunt',
607
+ api_get_lib='https://example.com/hd-api/external/apps/app-id/api.js',
608
+ )
609
+ ```
610
+
611
+ ### Alibaba
612
+
613
+ <sup>[API method description.](https://2captcha.com/2captcha-api#alibaba)</sup>
614
+
615
+ Use this method to solve Alibaba captcha. Returns a token.
616
+ ```python
617
+ result = solver.alibaba(pageurl='https://www.example.com',
618
+ scene_id='abc123xyz4',
619
+ prefix='dlw3kug',
620
+ )
621
+ ```
622
+
623
+ ### TSPD
624
+
625
+ <sup>[API method description.](https://2captcha.com/2captcha-api#tspd)</sup>
626
+
627
+ Use this method to solve TSPD captcha. Returns a JSON string with cookies.
628
+ ```python
629
+ result = solver.tspd(pageurl='https://example.com/login',
630
+ tspd_cookie='TS386a400d029=082670...010245; TS386a400d078=082670...dbb3b0c',
631
+ html_page_base64='PCFET0NUWVBFIGh0bWw+...',
632
+ proxy={'type': 'HTTP', 'uri': 'login:password@IP_address:PORT'},
633
+ )
634
+ ```
635
+
636
+ ### Basilisk
637
+
638
+ <sup>[API method description.](https://2captcha.com/2captcha-api#basilisk)</sup>
639
+
640
+ Use this method to solve Basilisk captcha. Returns a token.
641
+ ```python
642
+ result = solver.basilisk(pageurl='https://example.com/login',
643
+ sitekey='b7890h...19fb2600897',
644
+ )
645
+ ```
646
+
584
647
  ## Other methods
585
648
 
586
649
  ### send / get_result
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: 2captcha-python
3
- Version: 2.0.7
3
+ Version: 2.0.9
4
4
  Summary: Python module for easy integration with 2Captcha API
5
5
  Home-page: https://github.com/2captcha/2captcha-python/
6
6
  Author: 2Captcha
7
7
  Author-email: info@2captcha.com
8
- Keywords: 2captcha,captcha,api,captcha solver,reCAPTCHA,FunCaptcha,Geetest,image captcha,Coordinates,Click Captcha,Geetest V4,Lemin captcha,Amazon WAF,Cloudflare Turnstile,Capy Puzzle,MTCaptcha,Friendly Captcha,Tencent,Cutcaptcha,DataDome,VK Captcha,CaptchaFox,Prosopo,cybersiara
8
+ Keywords: 2captcha,captcha,api,captcha solver,reCAPTCHA,FunCaptcha,Geetest,image captcha,Coordinates,Click Captcha,Geetest V4,Lemin captcha,Amazon WAF,Cloudflare Turnstile,Capy Puzzle,MTCaptcha,Friendly Captcha,Tencent,Cutcaptcha,DataDome,VK Captcha,CaptchaFox,Prosopo,cybersiara,Hunt,Alibaba,TSPD,Basilisk
9
9
  Classifier: Programming Language :: Python :: 3
10
10
  Classifier: License :: OSI Approved :: MIT License
11
11
  Classifier: Operating System :: OS Independent
@@ -83,6 +83,11 @@ Examples of API requests for different captcha types are available on the [Pytho
83
83
  - [CyberSiARA](#cybersiara)
84
84
  - [Altcha Captcha](#altcha-Captcha)
85
85
  - [Binance](#binance)
86
+ - [Yidun](#yidun)
87
+ - [Hunt](#hunt)
88
+ - [Alibaba](#alibaba)
89
+ - [TSPD](#tspd)
90
+ - [Basilisk](#basilisk)
86
91
  - [Other methods](#other-methods)
87
92
  - [send / get\_result](#send--get_result)
88
93
  - [balance](#balance)
@@ -581,6 +586,64 @@ result = solver.binance(sitekey='register',
581
586
  validate_id='e20c622fa9384952832fc1c2a6b75c0a',)
582
587
  ```
583
588
 
589
+ ### Yidun
590
+
591
+ <sup>[API method description.](https://2captcha.com/2captcha-api#yidun)</sup>
592
+
593
+ Use this method to solve Yidun - NECaptcha. Returns a token.
594
+ ```python
595
+ result = solver.yidun(sitekey='6b4d7e0c4f5a4c7db2f3a1e8c9d6f123',
596
+ pageurl='https://mysite.com/page/with/yadun',
597
+ )
598
+ ```
599
+
600
+ ### Hunt
601
+
602
+ <sup>[API method description.](https://2captcha.com/2captcha-api#hunt)</sup>
603
+
604
+ Use this method to solve Hunt captcha. Returns a token.
605
+ ```python
606
+ result = solver.hunt(pageurl='https://example.com/page-with-hunt',
607
+ api_get_lib='https://example.com/hd-api/external/apps/app-id/api.js',
608
+ )
609
+ ```
610
+
611
+ ### Alibaba
612
+
613
+ <sup>[API method description.](https://2captcha.com/2captcha-api#alibaba)</sup>
614
+
615
+ Use this method to solve Alibaba captcha. Returns a token.
616
+ ```python
617
+ result = solver.alibaba(pageurl='https://www.example.com',
618
+ scene_id='abc123xyz4',
619
+ prefix='dlw3kug',
620
+ )
621
+ ```
622
+
623
+ ### TSPD
624
+
625
+ <sup>[API method description.](https://2captcha.com/2captcha-api#tspd)</sup>
626
+
627
+ Use this method to solve TSPD captcha. Returns a JSON string with cookies.
628
+ ```python
629
+ result = solver.tspd(pageurl='https://example.com/login',
630
+ tspd_cookie='TS386a400d029=082670...010245; TS386a400d078=082670...dbb3b0c',
631
+ html_page_base64='PCFET0NUWVBFIGh0bWw+...',
632
+ proxy={'type': 'HTTP', 'uri': 'login:password@IP_address:PORT'},
633
+ )
634
+ ```
635
+
636
+ ### Basilisk
637
+
638
+ <sup>[API method description.](https://2captcha.com/2captcha-api#basilisk)</sup>
639
+
640
+ Use this method to solve Basilisk captcha. Returns a token.
641
+ ```python
642
+ result = solver.basilisk(pageurl='https://example.com/login',
643
+ sitekey='b7890h...19fb2600897',
644
+ )
645
+ ```
646
+
584
647
  ## Other methods
585
648
 
586
649
  ### send / get_result
@@ -50,6 +50,11 @@ Examples of API requests for different captcha types are available on the [Pytho
50
50
  - [CyberSiARA](#cybersiara)
51
51
  - [Altcha Captcha](#altcha-Captcha)
52
52
  - [Binance](#binance)
53
+ - [Yidun](#yidun)
54
+ - [Hunt](#hunt)
55
+ - [Alibaba](#alibaba)
56
+ - [TSPD](#tspd)
57
+ - [Basilisk](#basilisk)
53
58
  - [Other methods](#other-methods)
54
59
  - [send / get\_result](#send--get_result)
55
60
  - [balance](#balance)
@@ -548,6 +553,64 @@ result = solver.binance(sitekey='register',
548
553
  validate_id='e20c622fa9384952832fc1c2a6b75c0a',)
549
554
  ```
550
555
 
556
+ ### Yidun
557
+
558
+ <sup>[API method description.](https://2captcha.com/2captcha-api#yidun)</sup>
559
+
560
+ Use this method to solve Yidun - NECaptcha. Returns a token.
561
+ ```python
562
+ result = solver.yidun(sitekey='6b4d7e0c4f5a4c7db2f3a1e8c9d6f123',
563
+ pageurl='https://mysite.com/page/with/yadun',
564
+ )
565
+ ```
566
+
567
+ ### Hunt
568
+
569
+ <sup>[API method description.](https://2captcha.com/2captcha-api#hunt)</sup>
570
+
571
+ Use this method to solve Hunt captcha. Returns a token.
572
+ ```python
573
+ result = solver.hunt(pageurl='https://example.com/page-with-hunt',
574
+ api_get_lib='https://example.com/hd-api/external/apps/app-id/api.js',
575
+ )
576
+ ```
577
+
578
+ ### Alibaba
579
+
580
+ <sup>[API method description.](https://2captcha.com/2captcha-api#alibaba)</sup>
581
+
582
+ Use this method to solve Alibaba captcha. Returns a token.
583
+ ```python
584
+ result = solver.alibaba(pageurl='https://www.example.com',
585
+ scene_id='abc123xyz4',
586
+ prefix='dlw3kug',
587
+ )
588
+ ```
589
+
590
+ ### TSPD
591
+
592
+ <sup>[API method description.](https://2captcha.com/2captcha-api#tspd)</sup>
593
+
594
+ Use this method to solve TSPD captcha. Returns a JSON string with cookies.
595
+ ```python
596
+ result = solver.tspd(pageurl='https://example.com/login',
597
+ tspd_cookie='TS386a400d029=082670...010245; TS386a400d078=082670...dbb3b0c',
598
+ html_page_base64='PCFET0NUWVBFIGh0bWw+...',
599
+ proxy={'type': 'HTTP', 'uri': 'login:password@IP_address:PORT'},
600
+ )
601
+ ```
602
+
603
+ ### Basilisk
604
+
605
+ <sup>[API method description.](https://2captcha.com/2captcha-api#basilisk)</sup>
606
+
607
+ Use this method to solve Basilisk captcha. Returns a token.
608
+ ```python
609
+ result = solver.basilisk(pageurl='https://example.com/login',
610
+ sitekey='b7890h...19fb2600897',
611
+ )
612
+ ```
613
+
551
614
  ## Other methods
552
615
 
553
616
  ### send / get_result
@@ -36,6 +36,6 @@ setup(name='2captcha-python',
36
36
  '2captcha', 'captcha', 'api', 'captcha solver', 'reCAPTCHA',
37
37
  'FunCaptcha', 'Geetest', 'image captcha', 'Coordinates', 'Click Captcha',
38
38
  'Geetest V4', 'Lemin captcha', 'Amazon WAF', 'Cloudflare Turnstile',
39
- 'Capy Puzzle', 'MTCaptcha', 'Friendly Captcha', 'Tencent', 'Cutcaptcha', 'DataDome', 'VK Captcha', 'CaptchaFox', 'Prosopo', 'cybersiara'],
39
+ 'Capy Puzzle', 'MTCaptcha', 'Friendly Captcha', 'Tencent', 'Cutcaptcha', 'DataDome', 'VK Captcha', 'CaptchaFox', 'Prosopo', 'cybersiara', 'Hunt', 'Alibaba', 'TSPD', 'Basilisk'],
40
40
  python_requires='>=3.8',
41
41
  test_suite='tests')
@@ -17,4 +17,4 @@ support@2captcha.com
17
17
  """
18
18
 
19
19
  __author__ = '2captcha'
20
- __version__ = '2.0.7'
20
+ __version__ = '2.0.9'
@@ -1045,6 +1045,148 @@ class AsyncTwoCaptcha():
1045
1045
 
1046
1046
  return await result
1047
1047
 
1048
+ async def yidun(self, sitekey, pageurl, **kwargs):
1049
+ '''Wrapper for solving Yidun captcha.
1050
+
1051
+ Parameters
1052
+ __________
1053
+
1054
+ sitekey : str
1055
+ The 'sitekey' value found in the website source code.
1056
+ pageurl : str
1057
+ Full URL of the page containing the captcha.
1058
+ yidun_get_lib : str, optional
1059
+ Path to the JavaScript file that loads the captcha on the page. Important: use the full URL (https://...). Recommended if the site includes challenge, hcg, or hct fields.
1060
+ yidun_api_server_subdomain : str, optional
1061
+ Yidun API server subdomain. Enter only the domain, without the https:// prefix.
1062
+ challenge : str, optional
1063
+ Usually sent in network requests during captcha initialization or display.
1064
+ hcg : str, optional
1065
+ Captcha hash used when forming the request. You can get this together with challenge.
1066
+ hct : int, optional
1067
+ Numeric timestamp or identifier used for Enterprise version validation.
1068
+ useragent : str, optional
1069
+ Browser User-Agent. We recommend sending a valid Windows browser string.
1070
+ proxy : dict, optional
1071
+ {'type': 'HTTPS', 'uri': 'login:password@IP_address:PORT'}.
1072
+ '''
1073
+ result = self.solve(method="yidun",
1074
+ pageurl=pageurl,
1075
+ sitekey=sitekey,
1076
+ **kwargs)
1077
+
1078
+ return await result
1079
+
1080
+ async def hunt(self, pageurl, api_get_lib, **kwargs):
1081
+ '''Wrapper for solving Hunt captcha.
1082
+
1083
+ Parameters
1084
+ __________
1085
+ pageurl : str
1086
+ Full URL of the page with the captcha.
1087
+ api_get_lib : str
1088
+ Full link to the api.js file that loads the captcha on the page.
1089
+ data : str, optional
1090
+ Value of `meta.token` that the site returned after a request with X-HD.
1091
+ Use only for the captcha solving mode (second step).
1092
+ useragent : str, optional
1093
+ Browser User-Agent used to open the page.
1094
+ proxy : dict, optional
1095
+ {'type': 'HTTPS', 'uri': 'login:password@IP_address:PORT'}.
1096
+ '''
1097
+ result = self.solve(
1098
+ method="hunt",
1099
+ pageurl=pageurl,
1100
+ api_get_lib=api_get_lib,
1101
+ **kwargs)
1102
+
1103
+ return await result
1104
+
1105
+ async def alibaba(self, pageurl, scene_id, prefix, **kwargs):
1106
+ '''Wrapper for solving Alibaba captcha.
1107
+
1108
+ Parameters
1109
+ __________
1110
+ pageurl : str
1111
+ Full URL of the page with the captcha.
1112
+ scene_id : str
1113
+ Captcha scenario identifier.
1114
+ prefix : str
1115
+ Prefix from the captcha loading request subdomain.
1116
+ user_id : str, optional
1117
+ User or session identifier on the website.
1118
+ user_user_id : str, optional
1119
+ Additional user identifier.
1120
+ verify_type : str, optional
1121
+ Verification mechanism version or type.
1122
+ region : str, optional
1123
+ Captcha processing region.
1124
+ user_certify_id : str, optional
1125
+ Verification ID for the current captcha session.
1126
+ api_get_lib : str, optional
1127
+ URL of the Alibaba Captcha JS library.
1128
+ useragent : str, optional
1129
+ Browser User-Agent used to open the page.
1130
+ proxy : dict, optional
1131
+ {'type': 'HTTPS', 'uri': 'login:password@IP_address:PORT'}.
1132
+ '''
1133
+ result = self.solve(
1134
+ method="alibaba",
1135
+ pageurl=pageurl,
1136
+ scene_id=scene_id,
1137
+ prefix=prefix,
1138
+ **kwargs)
1139
+
1140
+ return await result
1141
+
1142
+ async def tspd(self, pageurl, tspd_cookie, html_page_base64, proxy, **kwargs):
1143
+ '''Wrapper for solving TSPD captcha.
1144
+
1145
+ Parameters
1146
+ __________
1147
+ pageurl : str
1148
+ Full URL of the page with the captcha.
1149
+ tspd_cookie : str
1150
+ Cookies received on the TSPD challenge page.
1151
+ html_page_base64 : str
1152
+ Full HTML of the challenge page, Base64 encoded.
1153
+ proxy : dict
1154
+ {'type': 'HTTPS', 'uri': 'login:password@IP_address:PORT'}.
1155
+ useragent : str, optional
1156
+ Browser User-Agent. We recommend sending a valid Windows browser string.
1157
+ '''
1158
+ result = self.solve(
1159
+ method="tspd",
1160
+ pageurl=pageurl,
1161
+ tspd_cookie=tspd_cookie,
1162
+ html_page_base64=html_page_base64,
1163
+ proxy=proxy,
1164
+ **kwargs)
1165
+
1166
+ return await result
1167
+
1168
+ async def basilisk(self, pageurl, sitekey, **kwargs):
1169
+ '''Wrapper for solving Basilisk captcha.
1170
+
1171
+ Parameters
1172
+ __________
1173
+ pageurl : str
1174
+ Full URL of the page with the captcha.
1175
+ sitekey : str
1176
+ The value of the data-site-key parameter found on the page.
1177
+ useragent : str, optional
1178
+ Browser User-Agent used to open the page.
1179
+ proxy : dict, optional
1180
+ {'type': 'HTTPS', 'uri': 'login:password@IP_address:PORT'}.
1181
+ '''
1182
+ result = self.solve(
1183
+ method="basilisk",
1184
+ pageurl=pageurl,
1185
+ sitekey=sitekey,
1186
+ **kwargs)
1187
+
1188
+ return await result
1189
+
1048
1190
  async def solve(self, timeout=0, polling_interval=0, **kwargs):
1049
1191
  '''Sends captcha, receives result.
1050
1192
 
@@ -109,6 +109,18 @@ class TwoCaptcha():
109
109
  Wrapper for solving Yandex Smart.
110
110
  altcha(self, pageurl, challenge_url=None, challenge_json=None, **kwargs)
111
111
  Wrapper for solving Altcha Captcha.
112
+ binance(self, pageurl, sitekey, validate_id, **kwargs)
113
+ Wrapper for solving Binance captcha.
114
+ yidun(self, sitekey, pageurl, **kwargs)
115
+ Wrapper for solving Yidun captcha.
116
+ hunt(self, pageurl, api_get_lib, **kwargs)
117
+ Wrapper for solving Hunt captcha.
118
+ alibaba(self, pageurl, scene_id, prefix, **kwargs)
119
+ Wrapper for solving Alibaba captcha.
120
+ tspd(self, pageurl, tspd_cookie, html_page_base64, proxy, **kwargs)
121
+ Wrapper for solving TSPD captcha.
122
+ basilisk(self, pageurl, sitekey, **kwargs)
123
+ Wrapper for solving Basilisk captcha.
112
124
  solve(timeout=0, polling_interval=0, **kwargs)
113
125
  Sends CAPTCHA data and retrieves the result.
114
126
  balance()
@@ -1181,6 +1193,149 @@ class TwoCaptcha():
1181
1193
  **kwargs)
1182
1194
 
1183
1195
  return result
1196
+
1197
+ def yidun(self, sitekey, pageurl, **kwargs):
1198
+ '''Wrapper for solving Yidun captcha.
1199
+
1200
+ Parameters
1201
+ __________
1202
+
1203
+ sitekey : str
1204
+ The 'sitekey' value found in the website source code.
1205
+ pageurl : str
1206
+ Full URL of the page containing the captcha.
1207
+ yidun_get_lib : str, optional
1208
+ Path to the JavaScript file that loads the captcha on the page. Important: use the full URL (https://...). Recommended if the site includes challenge, hcg, or hct fields.
1209
+ yidun_api_server_subdomain : str, optional
1210
+ Yidun API server subdomain. Enter only the domain, without the https:// prefix.
1211
+ challenge : str, optional
1212
+ Usually sent in network requests during captcha initialization or display.
1213
+ hcg : str, optional
1214
+ Captcha hash used when forming the request. You can get this together with challenge.
1215
+ hct : int, optional
1216
+ Numeric timestamp or identifier used for Enterprise version validation.
1217
+ useragent : str, optional
1218
+ Browser User-Agent. We recommend sending a valid Windows browser string.
1219
+ proxy : dict, optional
1220
+ {'type': 'HTTPS', 'uri': 'login:password@IP_address:PORT'}.
1221
+ '''
1222
+ result = self.solve(
1223
+ method="yidun",
1224
+ pageurl=pageurl,
1225
+ sitekey=sitekey,
1226
+ **kwargs)
1227
+
1228
+ return result
1229
+
1230
+ def hunt(self, pageurl, api_get_lib, **kwargs):
1231
+ '''Wrapper for solving Hunt captcha.
1232
+
1233
+ Parameters
1234
+ __________
1235
+ pageurl : str
1236
+ Full URL of the page with the captcha.
1237
+ api_get_lib : str
1238
+ Full link to the api.js file that loads the captcha on the page.
1239
+ data : str, optional
1240
+ Value of `meta.token` that the site returned after a request with X-HD.
1241
+ Use only for the captcha solving mode (second step).
1242
+ useragent : str, optional
1243
+ Browser User-Agent used to open the page.
1244
+ proxy : dict, optional
1245
+ {'type': 'HTTPS', 'uri': 'login:password@IP_address:PORT'}.
1246
+ '''
1247
+ result = self.solve(
1248
+ method="hunt",
1249
+ pageurl=pageurl,
1250
+ api_get_lib=api_get_lib,
1251
+ **kwargs)
1252
+
1253
+ return result
1254
+
1255
+ def alibaba(self, pageurl, scene_id, prefix, **kwargs):
1256
+ '''Wrapper for solving Alibaba captcha.
1257
+
1258
+ Parameters
1259
+ __________
1260
+ pageurl : str
1261
+ Full URL of the page with the captcha.
1262
+ scene_id : str
1263
+ Captcha scenario identifier.
1264
+ prefix : str
1265
+ Prefix from the captcha loading request subdomain.
1266
+ user_id : str, optional
1267
+ User or session identifier on the website.
1268
+ user_user_id : str, optional
1269
+ Additional user identifier.
1270
+ verify_type : str, optional
1271
+ Verification mechanism version or type.
1272
+ region : str, optional
1273
+ Captcha processing region.
1274
+ user_certify_id : str, optional
1275
+ Verification ID for the current captcha session.
1276
+ api_get_lib : str, optional
1277
+ URL of the Alibaba Captcha JS library.
1278
+ useragent : str, optional
1279
+ Browser User-Agent used to open the page.
1280
+ proxy : dict, optional
1281
+ {'type': 'HTTPS', 'uri': 'login:password@IP_address:PORT'}.
1282
+ '''
1283
+ result = self.solve(
1284
+ method="alibaba",
1285
+ pageurl=pageurl,
1286
+ scene_id=scene_id,
1287
+ prefix=prefix,
1288
+ **kwargs)
1289
+
1290
+ return result
1291
+
1292
+ def tspd(self, pageurl, tspd_cookie, html_page_base64, proxy, **kwargs):
1293
+ '''Wrapper for solving TSPD captcha.
1294
+
1295
+ Parameters
1296
+ __________
1297
+ pageurl : str
1298
+ Full URL of the page with the captcha.
1299
+ tspd_cookie : str
1300
+ Cookies received on the TSPD challenge page.
1301
+ html_page_base64 : str
1302
+ Full HTML of the challenge page, Base64 encoded.
1303
+ proxy : dict
1304
+ {'type': 'HTTPS', 'uri': 'login:password@IP_address:PORT'}.
1305
+ useragent : str, optional
1306
+ Browser User-Agent. We recommend sending a valid Windows browser string.
1307
+ '''
1308
+ result = self.solve(
1309
+ method="tspd",
1310
+ pageurl=pageurl,
1311
+ tspd_cookie=tspd_cookie,
1312
+ html_page_base64=html_page_base64,
1313
+ proxy=proxy,
1314
+ **kwargs)
1315
+
1316
+ return result
1317
+
1318
+ def basilisk(self, pageurl, sitekey, **kwargs):
1319
+ '''Wrapper for solving Basilisk captcha.
1320
+
1321
+ Parameters
1322
+ __________
1323
+ pageurl : str
1324
+ Full URL of the page with the captcha.
1325
+ sitekey : str
1326
+ The value of the data-site-key parameter found on the page.
1327
+ useragent : str, optional
1328
+ Browser User-Agent used to open the page.
1329
+ proxy : dict, optional
1330
+ {'type': 'HTTPS', 'uri': 'login:password@IP_address:PORT'}.
1331
+ '''
1332
+ result = self.solve(
1333
+ method="basilisk",
1334
+ pageurl=pageurl,
1335
+ sitekey=sitekey,
1336
+ **kwargs)
1337
+
1338
+ return result
1184
1339
 
1185
1340
 
1186
1341
  def solve(self, timeout=0, polling_interval=0, **kwargs):
File without changes