2captcha-python 2.0.7__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.7 → 2captcha_python-2.0.8}/2captcha_python.egg-info/PKG-INFO +13 -1
- {2captcha_python-2.0.7 → 2captcha_python-2.0.8}/PKG-INFO +13 -1
- {2captcha_python-2.0.7 → 2captcha_python-2.0.8}/README.md +12 -0
- {2captcha_python-2.0.7 → 2captcha_python-2.0.8}/twocaptcha/__init__.py +1 -1
- {2captcha_python-2.0.7 → 2captcha_python-2.0.8}/twocaptcha/async_solver.py +32 -0
- {2captcha_python-2.0.7 → 2captcha_python-2.0.8}/twocaptcha/solver.py +37 -0
- {2captcha_python-2.0.7 → 2captcha_python-2.0.8}/2captcha_python.egg-info/SOURCES.txt +0 -0
- {2captcha_python-2.0.7 → 2captcha_python-2.0.8}/2captcha_python.egg-info/dependency_links.txt +0 -0
- {2captcha_python-2.0.7 → 2captcha_python-2.0.8}/2captcha_python.egg-info/requires.txt +0 -0
- {2captcha_python-2.0.7 → 2captcha_python-2.0.8}/2captcha_python.egg-info/top_level.txt +0 -0
- {2captcha_python-2.0.7 → 2captcha_python-2.0.8}/LICENSE +0 -0
- {2captcha_python-2.0.7 → 2captcha_python-2.0.8}/setup.cfg +0 -0
- {2captcha_python-2.0.7 → 2captcha_python-2.0.8}/setup.py +0 -0
- {2captcha_python-2.0.7 → 2captcha_python-2.0.8}/twocaptcha/api.py +0 -0
- {2captcha_python-2.0.7 → 2captcha_python-2.0.8}/twocaptcha/async_api.py +0 -0
- {2captcha_python-2.0.7 → 2captcha_python-2.0.8}/twocaptcha/exceptions/__init__.py +0 -0
- {2captcha_python-2.0.7 → 2captcha_python-2.0.8}/twocaptcha/exceptions/api.py +0 -0
- {2captcha_python-2.0.7 → 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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -50,6 +50,7 @@ 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)
|
|
53
54
|
- [Other methods](#other-methods)
|
|
54
55
|
- [send / get\_result](#send--get_result)
|
|
55
56
|
- [balance](#balance)
|
|
@@ -548,6 +549,17 @@ result = solver.binance(sitekey='register',
|
|
|
548
549
|
validate_id='e20c622fa9384952832fc1c2a6b75c0a',)
|
|
549
550
|
```
|
|
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
|
+
|
|
551
563
|
## Other methods
|
|
552
564
|
|
|
553
565
|
### send / get_result
|
|
@@ -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
|
|
|
@@ -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):
|
|
File without changes
|
{2captcha_python-2.0.7 → 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
|