2captcha-python 2.0.4__py3-none-any.whl → 2.0.6__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.
- {2captcha_python-2.0.4.dist-info → 2captcha_python-2.0.6.dist-info}/METADATA +13 -1
- 2captcha_python-2.0.6.dist-info/RECORD +13 -0
- twocaptcha/__init__.py +1 -1
- twocaptcha/async_solver.py +24 -0
- twocaptcha/solver.py +30 -0
- 2captcha_python-2.0.4.dist-info/RECORD +0 -13
- {2captcha_python-2.0.4.dist-info → 2captcha_python-2.0.6.dist-info}/WHEEL +0 -0
- {2captcha_python-2.0.4.dist-info → 2captcha_python-2.0.6.dist-info}/licenses/LICENSE +0 -0
- {2captcha_python-2.0.4.dist-info → 2captcha_python-2.0.6.dist-info}/top_level.txt +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
|
|
@@ -81,6 +81,7 @@ Examples of API requests for different captcha types are available on the [Pytho
|
|
|
81
81
|
- [Prosopo](#prosopo)
|
|
82
82
|
- [Temu](#temu)
|
|
83
83
|
- [CyberSiARA](#cybersiara)
|
|
84
|
+
- [Altcha Captcha](#altcha-Captcha)
|
|
84
85
|
- [Other methods](#other-methods)
|
|
85
86
|
- [send / get\_result](#send--get_result)
|
|
86
87
|
- [balance](#balance)
|
|
@@ -557,6 +558,17 @@ result = solver.cybersiara(master_url_id='tpjOCKjjpdzv3d8Ub2E9COEWKt1vl1Mv',
|
|
|
557
558
|
param1=..., ...)
|
|
558
559
|
```
|
|
559
560
|
|
|
561
|
+
### Altcha Captcha
|
|
562
|
+
|
|
563
|
+
<sup>[API method description.](http://2captcha.com/2captcha-api#altchacaptcha)</sup>
|
|
564
|
+
|
|
565
|
+
Use this method to solve Altcha Captcha. Returns a token.
|
|
566
|
+
```python
|
|
567
|
+
result = solver.altcha(pageurl='https://mysite.com/page/with/altcha',
|
|
568
|
+
challenge_json='{"algorithm":"SHA-256","challenge":"a4c9d8e7f1b23a6c...",..."signature":"7b3e2a9d5c8f1046e2d91c3a..."}',
|
|
569
|
+
# challenge_url='https://example.com/altcha-challenge',)
|
|
570
|
+
```
|
|
571
|
+
|
|
560
572
|
## Other methods
|
|
561
573
|
|
|
562
574
|
### send / get_result
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
2captcha_python-2.0.6.dist-info/licenses/LICENSE,sha256=sbILKjQcxUC6dAvBbivnRX9YCshBI9XRvvk1LGkpMEo,1065
|
|
2
|
+
twocaptcha/__init__.py,sha256=6YGd-Hwk935HVWLih6Nc9BLkLjCe4jMOFPt8qFJ0xWI,542
|
|
3
|
+
twocaptcha/api.py,sha256=vlYOhc3rGIHOVGq4hZjJ54tUxBpBzI2FgWPctllb7D0,2826
|
|
4
|
+
twocaptcha/async_api.py,sha256=L467rsgdVVrgWaLkvengoTE8GvCgQAfM2PmVO2kfad4,3534
|
|
5
|
+
twocaptcha/async_solver.py,sha256=WzSu5EB8CBY-RLWlvoc9jgakuRsT3Msp_DJSg3Oecc8,51470
|
|
6
|
+
twocaptcha/solver.py,sha256=DpYSm0lwNFViWRcH2rLhvd_OEQDKsGKLDNDbozp51as,58108
|
|
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.6.dist-info/METADATA,sha256=Lk0gAqP48Lsnc3EfjvvDuGHiw14n3_LvWTgvIIeHlAM,31493
|
|
11
|
+
2captcha_python-2.0.6.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
12
|
+
2captcha_python-2.0.6.dist-info/top_level.txt,sha256=AvFZdM89oM6Vo97ZTxT9AxHWpwoO3_Qf5ORMV3NClFE,11
|
|
13
|
+
2captcha_python-2.0.6.dist-info/RECORD,,
|
twocaptcha/__init__.py
CHANGED
twocaptcha/async_solver.py
CHANGED
|
@@ -998,6 +998,30 @@ class AsyncTwoCaptcha():
|
|
|
998
998
|
**kwargs)
|
|
999
999
|
return result
|
|
1000
1000
|
|
|
1001
|
+
async def altcha(self, pageurl, **kwargs):
|
|
1002
|
+
'''Wrapper for solving Altcha Captcha.
|
|
1003
|
+
|
|
1004
|
+
Parameters
|
|
1005
|
+
__________
|
|
1006
|
+
pageurl : str
|
|
1007
|
+
Full URL of the page where you solve the captcha.
|
|
1008
|
+
challenge_url : str, optional
|
|
1009
|
+
The value of the 'challenge_url' parameter for the 'altcha-widget' element containing the captcha on the page.
|
|
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
|
+
proxy : dict, optional
|
|
1015
|
+
{'type': 'HTTPS', 'uri': 'login:password@IP_address:PORT'}.
|
|
1016
|
+
|
|
1017
|
+
'''
|
|
1018
|
+
|
|
1019
|
+
result = self.solve(pageurl=pageurl,
|
|
1020
|
+
method='altcha',
|
|
1021
|
+
**kwargs)
|
|
1022
|
+
|
|
1023
|
+
return await result
|
|
1024
|
+
|
|
1001
1025
|
async def solve(self, timeout=0, polling_interval=0, **kwargs):
|
|
1002
1026
|
'''Sends captcha, receives result.
|
|
1003
1027
|
|
twocaptcha/solver.py
CHANGED
|
@@ -105,6 +105,10 @@ class TwoCaptcha():
|
|
|
105
105
|
Use this method to solve DataDome captcha.
|
|
106
106
|
cybersiara(master_url_id, pageurl, userAgent, **kwargs)
|
|
107
107
|
Use this method to solve CyberSiARA. Returns a token.
|
|
108
|
+
yandex_smart(self, sitekey, url, **kwargs)
|
|
109
|
+
Wrapper for solving Yandex Smart.
|
|
110
|
+
altcha(self, pageurl, challenge_url=None, challenge_json=None, **kwargs)
|
|
111
|
+
Wrapper for solving Altcha Captcha.
|
|
108
112
|
solve(timeout=0, polling_interval=0, **kwargs)
|
|
109
113
|
Sends CAPTCHA data and retrieves the result.
|
|
110
114
|
balance()
|
|
@@ -1128,6 +1132,32 @@ class TwoCaptcha():
|
|
|
1128
1132
|
**kwargs)
|
|
1129
1133
|
return result
|
|
1130
1134
|
|
|
1135
|
+
def altcha(self, pageurl, **kwargs):
|
|
1136
|
+
'''Wrapper for solving Altcha Captcha.
|
|
1137
|
+
|
|
1138
|
+
Parameters
|
|
1139
|
+
__________
|
|
1140
|
+
pageurl : str
|
|
1141
|
+
Full URL of the page where you solve the captcha.
|
|
1142
|
+
challenge_url : str, optional
|
|
1143
|
+
The value of the 'challenge_url' parameter for the 'altcha-widget' element containing the captcha on the page.
|
|
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
|
+
proxy : dict, optional
|
|
1149
|
+
{'type': 'HTTPS', 'uri': 'login:password@IP_address:PORT'}.
|
|
1150
|
+
|
|
1151
|
+
'''
|
|
1152
|
+
|
|
1153
|
+
result = self.solve(
|
|
1154
|
+
pageurl=pageurl,
|
|
1155
|
+
method="altcha",
|
|
1156
|
+
**kwargs)
|
|
1157
|
+
|
|
1158
|
+
return result
|
|
1159
|
+
|
|
1160
|
+
|
|
1131
1161
|
def solve(self, timeout=0, polling_interval=0, **kwargs):
|
|
1132
1162
|
'''Sends captcha, receives result.
|
|
1133
1163
|
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
2captcha_python-2.0.4.dist-info/licenses/LICENSE,sha256=sbILKjQcxUC6dAvBbivnRX9YCshBI9XRvvk1LGkpMEo,1065
|
|
2
|
-
twocaptcha/__init__.py,sha256=h9eTiWBT8oAXRkhCe9f0M8aOKCMw0owgXwa47BNjHVM,542
|
|
3
|
-
twocaptcha/api.py,sha256=vlYOhc3rGIHOVGq4hZjJ54tUxBpBzI2FgWPctllb7D0,2826
|
|
4
|
-
twocaptcha/async_api.py,sha256=L467rsgdVVrgWaLkvengoTE8GvCgQAfM2PmVO2kfad4,3534
|
|
5
|
-
twocaptcha/async_solver.py,sha256=OioTjoF1QlMNT0gBvlPf045plF8b9jHACDfo65ZnztA,50519
|
|
6
|
-
twocaptcha/solver.py,sha256=mZ9zGSyxzhJ14kAn24kfCfctYrWQfoDBrgN02yz7AlI,56969
|
|
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.4.dist-info/METADATA,sha256=C4962N-V4NpqBjMWpspaE6lydggcM0zNZ6x4HRM_NOQ,30980
|
|
11
|
-
2captcha_python-2.0.4.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
12
|
-
2captcha_python-2.0.4.dist-info/top_level.txt,sha256=AvFZdM89oM6Vo97ZTxT9AxHWpwoO3_Qf5ORMV3NClFE,11
|
|
13
|
-
2captcha_python-2.0.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|