2captcha-python 2.0.6__tar.gz → 2.0.8__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.
- {2captcha_python-2.0.6 → 2captcha_python-2.0.8}/2captcha_python.egg-info/PKG-INFO +25 -1
- {2captcha_python-2.0.6 → 2captcha_python-2.0.8}/PKG-INFO +25 -1
- {2captcha_python-2.0.6 → 2captcha_python-2.0.8}/README.md +24 -0
- {2captcha_python-2.0.6 → 2captcha_python-2.0.8}/twocaptcha/__init__.py +1 -1
- {2captcha_python-2.0.6 → 2captcha_python-2.0.8}/twocaptcha/async_solver.py +56 -1
- {2captcha_python-2.0.6 → 2captcha_python-2.0.8}/twocaptcha/solver.py +62 -0
- {2captcha_python-2.0.6 → 2captcha_python-2.0.8}/2captcha_python.egg-info/SOURCES.txt +0 -0
- {2captcha_python-2.0.6 → 2captcha_python-2.0.8}/2captcha_python.egg-info/dependency_links.txt +0 -0
- {2captcha_python-2.0.6 → 2captcha_python-2.0.8}/2captcha_python.egg-info/requires.txt +0 -0
- {2captcha_python-2.0.6 → 2captcha_python-2.0.8}/2captcha_python.egg-info/top_level.txt +0 -0
- {2captcha_python-2.0.6 → 2captcha_python-2.0.8}/LICENSE +0 -0
- {2captcha_python-2.0.6 → 2captcha_python-2.0.8}/setup.cfg +0 -0
- {2captcha_python-2.0.6 → 2captcha_python-2.0.8}/setup.py +0 -0
- {2captcha_python-2.0.6 → 2captcha_python-2.0.8}/twocaptcha/api.py +0 -0
- {2captcha_python-2.0.6 → 2captcha_python-2.0.8}/twocaptcha/async_api.py +0 -0
- {2captcha_python-2.0.6 → 2captcha_python-2.0.8}/twocaptcha/exceptions/__init__.py +0 -0
- {2captcha_python-2.0.6 → 2captcha_python-2.0.8}/twocaptcha/exceptions/api.py +0 -0
- {2captcha_python-2.0.6 → 2captcha_python-2.0.8}/twocaptcha/exceptions/solver.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: 2captcha-python
|
|
3
|
-
Version: 2.0.
|
|
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: 2captcha-python
|
|
3
|
-
Version: 2.0.
|
|
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
|
|
@@ -49,6 +49,8 @@ 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)
|
|
53
|
+
- [Yidun](#yidun)
|
|
52
54
|
- [Other methods](#other-methods)
|
|
53
55
|
- [send / get\_result](#send--get_result)
|
|
54
56
|
- [balance](#balance)
|
|
@@ -536,6 +538,28 @@ result = solver.altcha(pageurl='https://mysite.com/page/with/altcha',
|
|
|
536
538
|
# challenge_url='https://example.com/altcha-challenge',)
|
|
537
539
|
```
|
|
538
540
|
|
|
541
|
+
### Binance
|
|
542
|
+
|
|
543
|
+
<sup>[API method description.](https://2captcha.com/2captcha-api#binance)</sup>
|
|
544
|
+
|
|
545
|
+
Use this method to solve Binance Captcha. Returns a token.
|
|
546
|
+
```python
|
|
547
|
+
result = solver.binance(sitekey='register',
|
|
548
|
+
pageurl='https://mysite.com/page/with/binance',
|
|
549
|
+
validate_id='e20c622fa9384952832fc1c2a6b75c0a',)
|
|
550
|
+
```
|
|
551
|
+
|
|
552
|
+
### Yidun
|
|
553
|
+
|
|
554
|
+
<sup>[API method description.](https://2captcha.com/2captcha-api#yidun)</sup>
|
|
555
|
+
|
|
556
|
+
Use this method to solve Yidun - NECaptcha. Returns a token.
|
|
557
|
+
```python
|
|
558
|
+
result = solver.yidun(sitekey='6b4d7e0c4f5a4c7db2f3a1e8c9d6f123',
|
|
559
|
+
pageurl='https://mysite.com/page/with/yadun',
|
|
560
|
+
)
|
|
561
|
+
```
|
|
562
|
+
|
|
539
563
|
## Other methods
|
|
540
564
|
|
|
541
565
|
### send / get_result
|
|
@@ -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
|
|
|
@@ -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):
|
|
File without changes
|
{2captcha_python-2.0.6 → 2captcha_python-2.0.8}/2captcha_python.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|