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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: 2captcha-python
3
- Version: 2.0.2
3
+ Version: 2.0.3
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: 2captcha-python
3
- Version: 2.0.2
3
+ Version: 2.0.3
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
@@ -17,4 +17,4 @@ support@2captcha.com
17
17
  """
18
18
 
19
19
  __author__ = '2captcha'
20
- __version__ = '2.0.2'
20
+ __version__ = '2.0.3'
@@ -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