2captcha-python 2.0.6__py3-none-any.whl → 2.0.8__py3-none-any.whl

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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: 2captcha-python
3
- Version: 2.0.6
3
+ Version: 2.0.8
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
@@ -82,6 +82,8 @@ Examples of API requests for different captcha types are available on the [Pytho
82
82
  - [Temu](#temu)
83
83
  - [CyberSiARA](#cybersiara)
84
84
  - [Altcha Captcha](#altcha-Captcha)
85
+ - [Binance](#binance)
86
+ - [Yidun](#yidun)
85
87
  - [Other methods](#other-methods)
86
88
  - [send / get\_result](#send--get_result)
87
89
  - [balance](#balance)
@@ -569,6 +571,28 @@ result = solver.altcha(pageurl='https://mysite.com/page/with/altcha',
569
571
  # challenge_url='https://example.com/altcha-challenge',)
570
572
  ```
571
573
 
574
+ ### Binance
575
+
576
+ <sup>[API method description.](https://2captcha.com/2captcha-api#binance)</sup>
577
+
578
+ Use this method to solve Binance Captcha. Returns a token.
579
+ ```python
580
+ result = solver.binance(sitekey='register',
581
+ pageurl='https://mysite.com/page/with/binance',
582
+ validate_id='e20c622fa9384952832fc1c2a6b75c0a',)
583
+ ```
584
+
585
+ ### Yidun
586
+
587
+ <sup>[API method description.](https://2captcha.com/2captcha-api#yidun)</sup>
588
+
589
+ Use this method to solve Yidun - NECaptcha. Returns a token.
590
+ ```python
591
+ result = solver.yidun(sitekey='6b4d7e0c4f5a4c7db2f3a1e8c9d6f123',
592
+ pageurl='https://mysite.com/page/with/yadun',
593
+ )
594
+ ```
595
+
572
596
  ## Other methods
573
597
 
574
598
  ### send / get_result
@@ -0,0 +1,13 @@
1
+ 2captcha_python-2.0.8.dist-info/licenses/LICENSE,sha256=sbILKjQcxUC6dAvBbivnRX9YCshBI9XRvvk1LGkpMEo,1065
2
+ twocaptcha/__init__.py,sha256=ciSn_PMHS81L98Et6kL_QfRftiJXyEj9XohvLBtqsRg,542
3
+ twocaptcha/api.py,sha256=vlYOhc3rGIHOVGq4hZjJ54tUxBpBzI2FgWPctllb7D0,2826
4
+ twocaptcha/async_api.py,sha256=L467rsgdVVrgWaLkvengoTE8GvCgQAfM2PmVO2kfad4,3534
5
+ twocaptcha/async_solver.py,sha256=XOATNoergtZqSsIQgLuTWwTnyMVl8DviMaf4w7iDrTo,53885
6
+ twocaptcha/solver.py,sha256=-K1y-rUx_taiHvq6gCq6b9ZwrCzR03GH7m3VkNREEAo,60621
7
+ twocaptcha/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
+ twocaptcha/exceptions/api.py,sha256=N810fZxcNE2AwCM9EyFrXpDpzAKsKi_tHCnRJn4CH7s,86
9
+ twocaptcha/exceptions/solver.py,sha256=hvKUebPMvC51ve6MSmv_3q1J9vkhS90XO2ivoVToyoU,255
10
+ 2captcha_python-2.0.8.dist-info/METADATA,sha256=QNNlsByYVDXJJgqzC492qGBM5gLzCwrGrPNG-q6YCWk,32204
11
+ 2captcha_python-2.0.8.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
12
+ 2captcha_python-2.0.8.dist-info/top_level.txt,sha256=AvFZdM89oM6Vo97ZTxT9AxHWpwoO3_Qf5ORMV3NClFE,11
13
+ 2captcha_python-2.0.8.dist-info/RECORD,,
twocaptcha/__init__.py CHANGED
@@ -17,4 +17,4 @@ support@2captcha.com
17
17
  """
18
18
 
19
19
  __author__ = '2captcha'
20
- __version__ = '2.0.6'
20
+ __version__ = '2.0.8'
@@ -1013,7 +1013,6 @@ class AsyncTwoCaptcha():
1013
1013
  At least one of the parameters 'challenge_url', 'challenge_json' must be passed.
1014
1014
  proxy : dict, optional
1015
1015
  {'type': 'HTTPS', 'uri': 'login:password@IP_address:PORT'}.
1016
-
1017
1016
  '''
1018
1017
 
1019
1018
  result = self.solve(pageurl=pageurl,
@@ -1022,6 +1021,62 @@ class AsyncTwoCaptcha():
1022
1021
 
1023
1022
  return await result
1024
1023
 
1024
+ async def binance(self, pageurl, sitekey, validate_id, **kwargs):
1025
+ '''Wrapper for solving Binance captcha.
1026
+
1027
+ Parameters
1028
+ __________
1029
+ pageurl : str
1030
+ Full URL of the page where you solve the captcha.
1031
+ sitekey : str
1032
+ Value of 'bizId', 'bizType', or 'bizCode' from page requests.
1033
+ validate_id : str
1034
+ Dynamic value of 'validateId', 'securityId', or 'securityCheckResponseValidateId'.
1035
+ useragent : str, optional
1036
+ Browser User-Agent. We recommend sending a valid Windows browser string.
1037
+ proxy : dict, optional
1038
+ {'type': 'HTTPS', 'uri': 'login:password@IP_address:PORT'}.
1039
+ '''
1040
+ result = self.solve(method="binance",
1041
+ pageurl=pageurl,
1042
+ sitekey=sitekey,
1043
+ validate_id=validate_id,
1044
+ **kwargs)
1045
+
1046
+ return await result
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
+
1025
1080
  async def solve(self, timeout=0, polling_interval=0, **kwargs):
1026
1081
  '''Sends captcha, receives result.
1027
1082
 
twocaptcha/solver.py CHANGED
@@ -109,6 +109,10 @@ 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.
112
116
  solve(timeout=0, polling_interval=0, **kwargs)
113
117
  Sends CAPTCHA data and retrieves the result.
114
118
  balance()
@@ -1156,6 +1160,64 @@ class TwoCaptcha():
1156
1160
  **kwargs)
1157
1161
 
1158
1162
  return result
1163
+
1164
+ def binance(self, pageurl, sitekey, validate_id, **kwargs):
1165
+ '''Wrapper for solving Binance captcha.
1166
+
1167
+ Parameters
1168
+ __________
1169
+ pageurl : str
1170
+ Full URL of the page where you solve the captcha.
1171
+ sitekey : str
1172
+ Value of 'bizId', 'bizType', or 'bizCode' from page requests.
1173
+ validate_id : str
1174
+ Dynamic value of 'validateId', 'securityId', or 'securityCheckResponseValidateId'.
1175
+ useragent : str, optional
1176
+ Browser User-Agent. We recommend sending a valid Windows browser string.
1177
+ proxy : dict, optional
1178
+ {'type': 'HTTPS', 'uri': 'login:password@IP_address:PORT'}.
1179
+ '''
1180
+ result = self.solve(
1181
+ method="binance",
1182
+ pageurl=pageurl,
1183
+ sitekey=sitekey,
1184
+ validate_id=validate_id,
1185
+ **kwargs)
1186
+
1187
+ return result
1188
+
1189
+ def yidun(self, sitekey, pageurl, **kwargs):
1190
+ '''Wrapper for solving Yidun captcha.
1191
+
1192
+ Parameters
1193
+ __________
1194
+
1195
+ sitekey : str
1196
+ The 'sitekey' value found in the website source code.
1197
+ pageurl : str
1198
+ Full URL of the page containing the captcha.
1199
+ yidun_get_lib : str, optional
1200
+ 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.
1201
+ yidun_api_server_subdomain : str, optional
1202
+ Yidun API server subdomain. Enter only the domain, without the https:// prefix.
1203
+ challenge : str, optional
1204
+ Usually sent in network requests during captcha initialization or display.
1205
+ hcg : str, optional
1206
+ Captcha hash used when forming the request. You can get this together with challenge.
1207
+ hct : int, optional
1208
+ Numeric timestamp or identifier used for Enterprise version validation.
1209
+ useragent : str, optional
1210
+ Browser User-Agent. We recommend sending a valid Windows browser string.
1211
+ proxy : dict, optional
1212
+ {'type': 'HTTPS', 'uri': 'login:password@IP_address:PORT'}.
1213
+ '''
1214
+ result = self.solve(
1215
+ method="yidun",
1216
+ pageurl=pageurl,
1217
+ sitekey=sitekey,
1218
+ **kwargs)
1219
+
1220
+ return result
1159
1221
 
1160
1222
 
1161
1223
  def solve(self, timeout=0, polling_interval=0, **kwargs):
@@ -1,13 +0,0 @@
1
- 2captcha_python-2.0.6.dist-info/licenses/LICENSE,sha256=sbILKjQcxUC6dAvBbivnRX9YCshBI9XRvvk1LGkpMEo,1065
2
- twocaptcha/__init__.py,sha256=6YGd-Hwk935HVWLih6Nc9BLkLjCe4jMOFPt8qFJ0xWI,542
3
- twocaptcha/api.py,sha256=vlYOhc3rGIHOVGq4hZjJ54tUxBpBzI2FgWPctllb7D0,2826
4
- twocaptcha/async_api.py,sha256=L467rsgdVVrgWaLkvengoTE8GvCgQAfM2PmVO2kfad4,3534
5
- twocaptcha/async_solver.py,sha256=WzSu5EB8CBY-RLWlvoc9jgakuRsT3Msp_DJSg3Oecc8,51470
6
- twocaptcha/solver.py,sha256=DpYSm0lwNFViWRcH2rLhvd_OEQDKsGKLDNDbozp51as,58108
7
- twocaptcha/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
- twocaptcha/exceptions/api.py,sha256=N810fZxcNE2AwCM9EyFrXpDpzAKsKi_tHCnRJn4CH7s,86
9
- twocaptcha/exceptions/solver.py,sha256=hvKUebPMvC51ve6MSmv_3q1J9vkhS90XO2ivoVToyoU,255
10
- 2captcha_python-2.0.6.dist-info/METADATA,sha256=Lk0gAqP48Lsnc3EfjvvDuGHiw14n3_LvWTgvIIeHlAM,31493
11
- 2captcha_python-2.0.6.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
12
- 2captcha_python-2.0.6.dist-info/top_level.txt,sha256=AvFZdM89oM6Vo97ZTxT9AxHWpwoO3_Qf5ORMV3NClFE,11
13
- 2captcha_python-2.0.6.dist-info/RECORD,,