2captcha-python 2.0.5__tar.gz → 2.0.6__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.5 → 2captcha_python-2.0.6}/2captcha_python.egg-info/PKG-INFO +2 -2
- {2captcha_python-2.0.5 → 2captcha_python-2.0.6}/PKG-INFO +2 -2
- {2captcha_python-2.0.5 → 2captcha_python-2.0.6}/README.md +1 -1
- {2captcha_python-2.0.5 → 2captcha_python-2.0.6}/twocaptcha/__init__.py +1 -1
- {2captcha_python-2.0.5 → 2captcha_python-2.0.6}/twocaptcha/async_solver.py +10 -21
- {2captcha_python-2.0.5 → 2captcha_python-2.0.6}/twocaptcha/solver.py +11 -20
- {2captcha_python-2.0.5 → 2captcha_python-2.0.6}/2captcha_python.egg-info/SOURCES.txt +0 -0
- {2captcha_python-2.0.5 → 2captcha_python-2.0.6}/2captcha_python.egg-info/dependency_links.txt +0 -0
- {2captcha_python-2.0.5 → 2captcha_python-2.0.6}/2captcha_python.egg-info/requires.txt +0 -0
- {2captcha_python-2.0.5 → 2captcha_python-2.0.6}/2captcha_python.egg-info/top_level.txt +0 -0
- {2captcha_python-2.0.5 → 2captcha_python-2.0.6}/LICENSE +0 -0
- {2captcha_python-2.0.5 → 2captcha_python-2.0.6}/setup.cfg +0 -0
- {2captcha_python-2.0.5 → 2captcha_python-2.0.6}/setup.py +0 -0
- {2captcha_python-2.0.5 → 2captcha_python-2.0.6}/twocaptcha/api.py +0 -0
- {2captcha_python-2.0.5 → 2captcha_python-2.0.6}/twocaptcha/async_api.py +0 -0
- {2captcha_python-2.0.5 → 2captcha_python-2.0.6}/twocaptcha/exceptions/__init__.py +0 -0
- {2captcha_python-2.0.5 → 2captcha_python-2.0.6}/twocaptcha/exceptions/api.py +0 -0
- {2captcha_python-2.0.5 → 2captcha_python-2.0.6}/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.6
|
|
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
|
|
@@ -566,7 +566,7 @@ Use this method to solve Altcha Captcha. Returns a token.
|
|
|
566
566
|
```python
|
|
567
567
|
result = solver.altcha(pageurl='https://mysite.com/page/with/altcha',
|
|
568
568
|
challenge_json='{"algorithm":"SHA-256","challenge":"a4c9d8e7f1b23a6c...",..."signature":"7b3e2a9d5c8f1046e2d91c3a..."}',
|
|
569
|
-
#
|
|
569
|
+
# challenge_url='https://example.com/altcha-challenge',)
|
|
570
570
|
```
|
|
571
571
|
|
|
572
572
|
## Other methods
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: 2captcha-python
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.6
|
|
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
|
|
@@ -566,7 +566,7 @@ Use this method to solve Altcha Captcha. Returns a token.
|
|
|
566
566
|
```python
|
|
567
567
|
result = solver.altcha(pageurl='https://mysite.com/page/with/altcha',
|
|
568
568
|
challenge_json='{"algorithm":"SHA-256","challenge":"a4c9d8e7f1b23a6c...",..."signature":"7b3e2a9d5c8f1046e2d91c3a..."}',
|
|
569
|
-
#
|
|
569
|
+
# challenge_url='https://example.com/altcha-challenge',)
|
|
570
570
|
```
|
|
571
571
|
|
|
572
572
|
## Other methods
|
|
@@ -533,7 +533,7 @@ Use this method to solve Altcha Captcha. Returns a token.
|
|
|
533
533
|
```python
|
|
534
534
|
result = solver.altcha(pageurl='https://mysite.com/page/with/altcha',
|
|
535
535
|
challenge_json='{"algorithm":"SHA-256","challenge":"a4c9d8e7f1b23a6c...",..."signature":"7b3e2a9d5c8f1046e2d91c3a..."}',
|
|
536
|
-
#
|
|
536
|
+
# challenge_url='https://example.com/altcha-challenge',)
|
|
537
537
|
```
|
|
538
538
|
|
|
539
539
|
## Other methods
|
|
@@ -998,40 +998,29 @@ class AsyncTwoCaptcha():
|
|
|
998
998
|
**kwargs)
|
|
999
999
|
return result
|
|
1000
1000
|
|
|
1001
|
-
async def altcha(self, pageurl,
|
|
1001
|
+
async def altcha(self, pageurl, **kwargs):
|
|
1002
1002
|
'''Wrapper for solving Altcha Captcha.
|
|
1003
1003
|
|
|
1004
1004
|
Parameters
|
|
1005
1005
|
__________
|
|
1006
1006
|
pageurl : str
|
|
1007
1007
|
Full URL of the page where you solve the captcha.
|
|
1008
|
-
challenge_url : str
|
|
1008
|
+
challenge_url : str, optional
|
|
1009
1009
|
The value of the 'challenge_url' parameter for the 'altcha-widget' element containing the captcha on the page.
|
|
1010
|
-
|
|
1011
|
-
challenge_json : str
|
|
1012
|
-
The contents of the file from the 'challenge_url' parameter.
|
|
1013
|
-
|
|
1010
|
+
At least one of the parameters 'challenge_url', 'challenge_json' must be passed.
|
|
1011
|
+
challenge_json : str, optional
|
|
1012
|
+
The contents of the file from the 'challenge_url' parameter.
|
|
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
1016
|
|
|
1017
1017
|
'''
|
|
1018
1018
|
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
)
|
|
1023
|
-
|
|
1024
|
-
params = {
|
|
1025
|
-
'pageurl': pageurl,
|
|
1026
|
-
'method': 'altcha',
|
|
1027
|
-
**kwargs,}
|
|
1028
|
-
|
|
1029
|
-
if challenge_url is not None:
|
|
1030
|
-
params['challenge_url'] = challenge_url
|
|
1031
|
-
if challenge_json is not None:
|
|
1032
|
-
params['challenge_json'] = challenge_json
|
|
1019
|
+
result = self.solve(pageurl=pageurl,
|
|
1020
|
+
method='altcha',
|
|
1021
|
+
**kwargs)
|
|
1033
1022
|
|
|
1034
|
-
return await
|
|
1023
|
+
return await result
|
|
1035
1024
|
|
|
1036
1025
|
async def solve(self, timeout=0, polling_interval=0, **kwargs):
|
|
1037
1026
|
'''Sends captcha, receives result.
|
|
@@ -1132,39 +1132,30 @@ class TwoCaptcha():
|
|
|
1132
1132
|
**kwargs)
|
|
1133
1133
|
return result
|
|
1134
1134
|
|
|
1135
|
-
def altcha(self, pageurl,
|
|
1135
|
+
def altcha(self, pageurl, **kwargs):
|
|
1136
1136
|
'''Wrapper for solving Altcha Captcha.
|
|
1137
1137
|
|
|
1138
1138
|
Parameters
|
|
1139
1139
|
__________
|
|
1140
1140
|
pageurl : str
|
|
1141
1141
|
Full URL of the page where you solve the captcha.
|
|
1142
|
-
challenge_url : str
|
|
1142
|
+
challenge_url : str, optional
|
|
1143
1143
|
The value of the 'challenge_url' parameter for the 'altcha-widget' element containing the captcha on the page.
|
|
1144
|
-
|
|
1145
|
-
challenge_json : str
|
|
1146
|
-
The contents of the file from the 'challenge_url' parameter.
|
|
1147
|
-
|
|
1144
|
+
At least one of the parameters 'challenge_url', 'challenge_json' must be passed.
|
|
1145
|
+
challenge_json : str, optional
|
|
1146
|
+
The contents of the file from the 'challenge_url' parameter.
|
|
1147
|
+
At least one of the parameters 'challenge_url', 'challenge_json' must be passed.
|
|
1148
1148
|
proxy : dict, optional
|
|
1149
1149
|
{'type': 'HTTPS', 'uri': 'login:password@IP_address:PORT'}.
|
|
1150
1150
|
|
|
1151
1151
|
'''
|
|
1152
1152
|
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
)
|
|
1157
|
-
params = {
|
|
1158
|
-
'pageurl': pageurl,
|
|
1159
|
-
'method': "altcha",
|
|
1160
|
-
**kwargs,
|
|
1161
|
-
}
|
|
1162
|
-
if challenge_url is not None:
|
|
1163
|
-
params['challenge_url'] = challenge_url
|
|
1164
|
-
if challenge_json is not None:
|
|
1165
|
-
params['challenge_json'] = challenge_json
|
|
1153
|
+
result = self.solve(
|
|
1154
|
+
pageurl=pageurl,
|
|
1155
|
+
method="altcha",
|
|
1156
|
+
**kwargs)
|
|
1166
1157
|
|
|
1167
|
-
return
|
|
1158
|
+
return result
|
|
1168
1159
|
|
|
1169
1160
|
|
|
1170
1161
|
def solve(self, timeout=0, polling_interval=0, **kwargs):
|
|
File without changes
|
{2captcha_python-2.0.5 → 2captcha_python-2.0.6}/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
|