2captcha-python 2.0.2__tar.gz → 2.0.4__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.2 → 2captcha_python-2.0.4}/2captcha_python.egg-info/PKG-INFO +1 -1
- {2captcha_python-2.0.2 → 2captcha_python-2.0.4}/PKG-INFO +1 -1
- {2captcha_python-2.0.2 → 2captcha_python-2.0.4}/twocaptcha/__init__.py +1 -1
- {2captcha_python-2.0.2 → 2captcha_python-2.0.4}/twocaptcha/async_solver.py +10 -3
- {2captcha_python-2.0.2 → 2captcha_python-2.0.4}/twocaptcha/solver.py +10 -3
- {2captcha_python-2.0.2 → 2captcha_python-2.0.4}/2captcha_python.egg-info/SOURCES.txt +0 -0
- {2captcha_python-2.0.2 → 2captcha_python-2.0.4}/2captcha_python.egg-info/dependency_links.txt +0 -0
- {2captcha_python-2.0.2 → 2captcha_python-2.0.4}/2captcha_python.egg-info/requires.txt +0 -0
- {2captcha_python-2.0.2 → 2captcha_python-2.0.4}/2captcha_python.egg-info/top_level.txt +0 -0
- {2captcha_python-2.0.2 → 2captcha_python-2.0.4}/LICENSE +0 -0
- {2captcha_python-2.0.2 → 2captcha_python-2.0.4}/README.md +0 -0
- {2captcha_python-2.0.2 → 2captcha_python-2.0.4}/setup.cfg +0 -0
- {2captcha_python-2.0.2 → 2captcha_python-2.0.4}/setup.py +0 -0
- {2captcha_python-2.0.2 → 2captcha_python-2.0.4}/twocaptcha/api.py +0 -0
- {2captcha_python-2.0.2 → 2captcha_python-2.0.4}/twocaptcha/async_api.py +0 -0
- {2captcha_python-2.0.2 → 2captcha_python-2.0.4}/twocaptcha/exceptions/__init__.py +0 -0
- {2captcha_python-2.0.2 → 2captcha_python-2.0.4}/twocaptcha/exceptions/api.py +0 -0
- {2captcha_python-2.0.2 → 2captcha_python-2.0.4}/twocaptcha/exceptions/solver.py +0 -0
|
@@ -122,7 +122,7 @@ class AsyncTwoCaptcha():
|
|
|
122
122
|
if not lang or lang not in ("en", "ru", "de", "el", "pt", "fr"):
|
|
123
123
|
raise ValidationException(f'Lang not in "en", "ru", "de", "el", "pt", "fr". You send {lang}')
|
|
124
124
|
|
|
125
|
-
result = await self.solve(body=body, method=method, **kwargs)
|
|
125
|
+
result = await self.solve(body=body, method=method, lang=lang, **kwargs)
|
|
126
126
|
return result
|
|
127
127
|
|
|
128
128
|
async def text(self, text, **kwargs):
|
|
@@ -555,6 +555,8 @@ class AsyncTwoCaptcha():
|
|
|
555
555
|
Value of captcha_id parameter you found on target website.
|
|
556
556
|
url: str
|
|
557
557
|
Full URL of the page where you see Geetest captcha.
|
|
558
|
+
risk_type: str, optional
|
|
559
|
+
Value of risk_type parameter is contained in the captcha loading request.
|
|
558
560
|
softId : int, optional
|
|
559
561
|
ID of software developer. Developers who integrated their software with 2Captcha get reward: 10% of
|
|
560
562
|
spendings of their software users.
|
|
@@ -866,6 +868,11 @@ class AsyncTwoCaptcha():
|
|
|
866
868
|
User-Agent of the browser that will be used by the employee when loading the captcha.
|
|
867
869
|
proxy : dict
|
|
868
870
|
{'type': 'HTTPS', 'uri': 'login:password@IP_address:PORT'}.
|
|
871
|
+
api_server : str, optional
|
|
872
|
+
Default: https://cdn.captchafox.com/. Depending on the parameter value, the token format
|
|
873
|
+
changes — it will be prefixed with MAM_. For this, you need to set the server URL to:
|
|
874
|
+
https://s.uicdn.com/mampkg/@mamdev/core.frontend.libs.captchafox/. Two different APIs
|
|
875
|
+
return two different tokens. Choose the one you need.
|
|
869
876
|
'''
|
|
870
877
|
|
|
871
878
|
|
|
@@ -1143,8 +1150,8 @@ class AsyncTwoCaptcha():
|
|
|
1143
1150
|
|
|
1144
1151
|
'''
|
|
1145
1152
|
rep = 'reportgood' if correct else 'reportbad'
|
|
1146
|
-
await self.api_client.res(key=self.API_KEY, action=rep, id=id_)
|
|
1147
|
-
return
|
|
1153
|
+
answer = await self.api_client.res(key=self.API_KEY, action=rep, id=id_)
|
|
1154
|
+
return answer
|
|
1148
1155
|
|
|
1149
1156
|
def rename_params(self, params):
|
|
1150
1157
|
replace = {
|
|
@@ -243,7 +243,7 @@ class TwoCaptcha():
|
|
|
243
243
|
if not lang or lang not in ("en", "ru", "de", "el", "pt", "fr"):
|
|
244
244
|
raise ValidationException(f'Lang not in "en", "ru", "de", "el", "pt", "fr". You send {lang}')
|
|
245
245
|
|
|
246
|
-
result = self.solve(body=body, method=method, **kwargs)
|
|
246
|
+
result = self.solve(body=body, method=method, lang=lang, **kwargs)
|
|
247
247
|
return result
|
|
248
248
|
|
|
249
249
|
def text(self, text, **kwargs):
|
|
@@ -685,6 +685,8 @@ class TwoCaptcha():
|
|
|
685
685
|
Value of captcha_id parameter you found on target website.
|
|
686
686
|
url: str
|
|
687
687
|
Full URL of the page where you see Geetest captcha.
|
|
688
|
+
risk_type: str, optional
|
|
689
|
+
Value of risk_type parameter is contained in the captcha loading request.
|
|
688
690
|
softId : int, optional
|
|
689
691
|
ID of software developer. Developers who integrated their software with 2Captcha get reward: 10% of
|
|
690
692
|
spendings of their software users.
|
|
@@ -996,6 +998,11 @@ class TwoCaptcha():
|
|
|
996
998
|
User-Agent of the browser that will be used by the employee when loading the captcha.
|
|
997
999
|
proxy : dict
|
|
998
1000
|
{'type': 'HTTPS', 'uri': 'login:password@IP_address:PORT'}.
|
|
1001
|
+
api_server : str, optional
|
|
1002
|
+
Default: https://cdn.captchafox.com/. Depending on the parameter value, the token format
|
|
1003
|
+
changes — it will be prefixed with MAM_. For this, you need to set the server URL to:
|
|
1004
|
+
https://s.uicdn.com/mampkg/@mamdev/core.frontend.libs.captchafox/. Two different APIs
|
|
1005
|
+
return two different tokens. Choose the one you need.
|
|
999
1006
|
'''
|
|
1000
1007
|
|
|
1001
1008
|
|
|
@@ -1286,9 +1293,9 @@ class TwoCaptcha():
|
|
|
1286
1293
|
'''
|
|
1287
1294
|
|
|
1288
1295
|
rep = 'reportgood' if correct else 'reportbad'
|
|
1289
|
-
self.api_client.res(key=self.API_KEY, action=rep, id=id_)
|
|
1296
|
+
answer = self.api_client.res(key=self.API_KEY, action=rep, id=id_)
|
|
1290
1297
|
|
|
1291
|
-
return
|
|
1298
|
+
return answer
|
|
1292
1299
|
|
|
1293
1300
|
def rename_params(self, params):
|
|
1294
1301
|
|
|
File without changes
|
{2captcha_python-2.0.2 → 2captcha_python-2.0.4}/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
|
|
File without changes
|