2captcha-python 2.0.2__tar.gz → 2.0.3__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.3}/2captcha_python.egg-info/PKG-INFO +1 -1
- {2captcha_python-2.0.2 → 2captcha_python-2.0.3}/PKG-INFO +1 -1
- {2captcha_python-2.0.2 → 2captcha_python-2.0.3}/twocaptcha/__init__.py +1 -1
- {2captcha_python-2.0.2 → 2captcha_python-2.0.3}/twocaptcha/async_solver.py +5 -3
- {2captcha_python-2.0.2 → 2captcha_python-2.0.3}/twocaptcha/solver.py +5 -3
- {2captcha_python-2.0.2 → 2captcha_python-2.0.3}/2captcha_python.egg-info/SOURCES.txt +0 -0
- {2captcha_python-2.0.2 → 2captcha_python-2.0.3}/2captcha_python.egg-info/dependency_links.txt +0 -0
- {2captcha_python-2.0.2 → 2captcha_python-2.0.3}/2captcha_python.egg-info/requires.txt +0 -0
- {2captcha_python-2.0.2 → 2captcha_python-2.0.3}/2captcha_python.egg-info/top_level.txt +0 -0
- {2captcha_python-2.0.2 → 2captcha_python-2.0.3}/LICENSE +0 -0
- {2captcha_python-2.0.2 → 2captcha_python-2.0.3}/README.md +0 -0
- {2captcha_python-2.0.2 → 2captcha_python-2.0.3}/setup.cfg +0 -0
- {2captcha_python-2.0.2 → 2captcha_python-2.0.3}/setup.py +0 -0
- {2captcha_python-2.0.2 → 2captcha_python-2.0.3}/twocaptcha/api.py +0 -0
- {2captcha_python-2.0.2 → 2captcha_python-2.0.3}/twocaptcha/async_api.py +0 -0
- {2captcha_python-2.0.2 → 2captcha_python-2.0.3}/twocaptcha/exceptions/__init__.py +0 -0
- {2captcha_python-2.0.2 → 2captcha_python-2.0.3}/twocaptcha/exceptions/api.py +0 -0
- {2captcha_python-2.0.2 → 2captcha_python-2.0.3}/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.
|
|
@@ -1143,8 +1145,8 @@ class AsyncTwoCaptcha():
|
|
|
1143
1145
|
|
|
1144
1146
|
'''
|
|
1145
1147
|
rep = 'reportgood' if correct else 'reportbad'
|
|
1146
|
-
await self.api_client.res(key=self.API_KEY, action=rep, id=id_)
|
|
1147
|
-
return
|
|
1148
|
+
answer = await self.api_client.res(key=self.API_KEY, action=rep, id=id_)
|
|
1149
|
+
return answer
|
|
1148
1150
|
|
|
1149
1151
|
def rename_params(self, params):
|
|
1150
1152
|
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.
|
|
@@ -1286,9 +1288,9 @@ class TwoCaptcha():
|
|
|
1286
1288
|
'''
|
|
1287
1289
|
|
|
1288
1290
|
rep = 'reportgood' if correct else 'reportbad'
|
|
1289
|
-
self.api_client.res(key=self.API_KEY, action=rep, id=id_)
|
|
1291
|
+
answer = self.api_client.res(key=self.API_KEY, action=rep, id=id_)
|
|
1290
1292
|
|
|
1291
|
-
return
|
|
1293
|
+
return answer
|
|
1292
1294
|
|
|
1293
1295
|
def rename_params(self, params):
|
|
1294
1296
|
|
|
File without changes
|
{2captcha_python-2.0.2 → 2captcha_python-2.0.3}/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
|