2captcha-python 2.0.7__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.7
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
@@ -83,6 +83,7 @@ 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)
86
87
  - [Other methods](#other-methods)
87
88
  - [send / get\_result](#send--get_result)
88
89
  - [balance](#balance)
@@ -581,6 +582,17 @@ result = solver.binance(sitekey='register',
581
582
  validate_id='e20c622fa9384952832fc1c2a6b75c0a',)
582
583
  ```
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
+
584
596
  ## Other methods
585
597
 
586
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.7'
20
+ __version__ = '2.0.8'
@@ -1045,6 +1045,38 @@ 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
+
1048
1080
  async def solve(self, timeout=0, polling_interval=0, **kwargs):
1049
1081
  '''Sends captcha, receives result.
1050
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()
@@ -1181,6 +1185,39 @@ class TwoCaptcha():
1181
1185
  **kwargs)
1182
1186
 
1183
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
1184
1221
 
1185
1222
 
1186
1223
  def solve(self, timeout=0, polling_interval=0, **kwargs):
@@ -1,13 +0,0 @@
1
- 2captcha_python-2.0.7.dist-info/licenses/LICENSE,sha256=sbILKjQcxUC6dAvBbivnRX9YCshBI9XRvvk1LGkpMEo,1065
2
- twocaptcha/__init__.py,sha256=fJ1lUFhNr4FDbVsU07SmVdhxqFxknUDdS9QW8Iys-Fw,542
3
- twocaptcha/api.py,sha256=vlYOhc3rGIHOVGq4hZjJ54tUxBpBzI2FgWPctllb7D0,2826
4
- twocaptcha/async_api.py,sha256=L467rsgdVVrgWaLkvengoTE8GvCgQAfM2PmVO2kfad4,3534
5
- twocaptcha/async_solver.py,sha256=i-jtaEh8RChp10mxqpldy8bygGe9lC628HCJfTB7tAg,52418
6
- twocaptcha/solver.py,sha256=Ladd3dbje1Un7TxVIwga2uXhCFCtNNApCDCBKd0AIUo,58998
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.7.dist-info/METADATA,sha256=N_1y7PXJiXYu2Rw8_XJ0dIP_saPImg4XCRsil0rM9wQ,31876
11
- 2captcha_python-2.0.7.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
12
- 2captcha_python-2.0.7.dist-info/top_level.txt,sha256=AvFZdM89oM6Vo97ZTxT9AxHWpwoO3_Qf5ORMV3NClFE,11
13
- 2captcha_python-2.0.7.dist-info/RECORD,,