2captcha-python 2.0.6__tar.gz → 2.0.7__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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: 2captcha-python
3
- Version: 2.0.6
3
+ Version: 2.0.7
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,7 @@ 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)
85
86
  - [Other methods](#other-methods)
86
87
  - [send / get\_result](#send--get_result)
87
88
  - [balance](#balance)
@@ -569,6 +570,17 @@ result = solver.altcha(pageurl='https://mysite.com/page/with/altcha',
569
570
  # challenge_url='https://example.com/altcha-challenge',)
570
571
  ```
571
572
 
573
+ ### Binance
574
+
575
+ <sup>[API method description.](https://2captcha.com/2captcha-api#binance)</sup>
576
+
577
+ Use this method to solve Binance Captcha. Returns a token.
578
+ ```python
579
+ result = solver.binance(sitekey='register',
580
+ pageurl='https://mysite.com/page/with/binance',
581
+ validate_id='e20c622fa9384952832fc1c2a6b75c0a',)
582
+ ```
583
+
572
584
  ## Other methods
573
585
 
574
586
  ### send / get_result
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: 2captcha-python
3
- Version: 2.0.6
3
+ Version: 2.0.7
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,7 @@ 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)
85
86
  - [Other methods](#other-methods)
86
87
  - [send / get\_result](#send--get_result)
87
88
  - [balance](#balance)
@@ -569,6 +570,17 @@ result = solver.altcha(pageurl='https://mysite.com/page/with/altcha',
569
570
  # challenge_url='https://example.com/altcha-challenge',)
570
571
  ```
571
572
 
573
+ ### Binance
574
+
575
+ <sup>[API method description.](https://2captcha.com/2captcha-api#binance)</sup>
576
+
577
+ Use this method to solve Binance Captcha. Returns a token.
578
+ ```python
579
+ result = solver.binance(sitekey='register',
580
+ pageurl='https://mysite.com/page/with/binance',
581
+ validate_id='e20c622fa9384952832fc1c2a6b75c0a',)
582
+ ```
583
+
572
584
  ## Other methods
573
585
 
574
586
  ### send / get_result
@@ -49,6 +49,7 @@ Examples of API requests for different captcha types are available on the [Pytho
49
49
  - [Temu](#temu)
50
50
  - [CyberSiARA](#cybersiara)
51
51
  - [Altcha Captcha](#altcha-Captcha)
52
+ - [Binance](#binance)
52
53
  - [Other methods](#other-methods)
53
54
  - [send / get\_result](#send--get_result)
54
55
  - [balance](#balance)
@@ -536,6 +537,17 @@ result = solver.altcha(pageurl='https://mysite.com/page/with/altcha',
536
537
  # challenge_url='https://example.com/altcha-challenge',)
537
538
  ```
538
539
 
540
+ ### Binance
541
+
542
+ <sup>[API method description.](https://2captcha.com/2captcha-api#binance)</sup>
543
+
544
+ Use this method to solve Binance Captcha. Returns a token.
545
+ ```python
546
+ result = solver.binance(sitekey='register',
547
+ pageurl='https://mysite.com/page/with/binance',
548
+ validate_id='e20c622fa9384952832fc1c2a6b75c0a',)
549
+ ```
550
+
539
551
  ## Other methods
540
552
 
541
553
  ### send / get_result
@@ -17,4 +17,4 @@ support@2captcha.com
17
17
  """
18
18
 
19
19
  __author__ = '2captcha'
20
- __version__ = '2.0.6'
20
+ __version__ = '2.0.7'
@@ -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,30 @@ 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
+
1025
1048
  async def solve(self, timeout=0, polling_interval=0, **kwargs):
1026
1049
  '''Sends captcha, receives result.
1027
1050
 
@@ -1156,6 +1156,31 @@ class TwoCaptcha():
1156
1156
  **kwargs)
1157
1157
 
1158
1158
  return result
1159
+
1160
+ def binance(self, pageurl, sitekey, validate_id, **kwargs):
1161
+ '''Wrapper for solving Binance captcha.
1162
+
1163
+ Parameters
1164
+ __________
1165
+ pageurl : str
1166
+ Full URL of the page where you solve the captcha.
1167
+ sitekey : str
1168
+ Value of 'bizId', 'bizType', or 'bizCode' from page requests.
1169
+ validate_id : str
1170
+ Dynamic value of 'validateId', 'securityId', or 'securityCheckResponseValidateId'.
1171
+ useragent : str, optional
1172
+ Browser User-Agent. We recommend sending a valid Windows browser string.
1173
+ proxy : dict, optional
1174
+ {'type': 'HTTPS', 'uri': 'login:password@IP_address:PORT'}.
1175
+ '''
1176
+ result = self.solve(
1177
+ method="binance",
1178
+ pageurl=pageurl,
1179
+ sitekey=sitekey,
1180
+ validate_id=validate_id,
1181
+ **kwargs)
1182
+
1183
+ return result
1159
1184
 
1160
1185
 
1161
1186
  def solve(self, timeout=0, polling_interval=0, **kwargs):
File without changes