capmonster-python 3.1.0__py3-none-any.whl → 3.2.0__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.
@@ -10,3 +10,4 @@ from .compleximage import ComplexImageTask
10
10
  from .datadome import DataDomeTask
11
11
  from .turnstile import TurnstileTask
12
12
  from .tendi import TenDITask
13
+ from .aws_waf import AmazonWafTask
@@ -0,0 +1,22 @@
1
+ from .capmonster import Capmonster
2
+
3
+ class AmazonWafTask(Capmonster):
4
+ def __init__(self, client_key):
5
+ super(AmazonWafTask, self).__init__(client_key)
6
+
7
+ def create_task(self, website_url: str, website_key: str, challenge_script: str, captcha_script: str,
8
+ context: str, iv: str, cookieSolution: bool = False):
9
+ data = {
10
+ "clientKey": self._client_key,
11
+ "task": {
12
+ "type": "AmazonTaskProxyless",
13
+ "websiteURL": website_url,
14
+ "websiteKey": website_key,
15
+ "challengeScript": challenge_script,
16
+ "captchaScript": captcha_script,
17
+ "context": context,
18
+ "iv": iv,
19
+ "cookieSolution": cookieSolution
20
+ }
21
+ }
22
+ return self._make_request("createTask", data).get("taskId")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: capmonster_python
3
- Version: 3.1.0
3
+ Version: 3.2.0
4
4
  Summary: capmonster.cloud library for Python
5
5
  Home-page: https://github.com/alperensert/capmonster_python
6
6
  Author: Alperen Sert
@@ -1,4 +1,5 @@
1
- capmonster_python/__init__.py,sha256=WUwMExpEtB8_TlH8kESbXXLp4Rt6ZYuJcrfSupWLa1o,481
1
+ capmonster_python/__init__.py,sha256=FQBdZY4HVFL3nDPjpHCMcxo6gT9owqrrWlrqEp1pCUU,516
2
+ capmonster_python/aws_waf.py,sha256=KDjCkK12hF4-aCWEFCf_7b02rN7RUPW-GK6m5IrQVz4,861
2
3
  capmonster_python/capmonster.py,sha256=0gJw9iLl8XQvqk1eOgv9oOZ_929VS4r7dIv2ixbF9S0,9026
3
4
  capmonster_python/compleximage.py,sha256=D0DDPTu5Ntw6f7ZGvv9k11HPAogb43KSjqQlRl1uJoQ,2086
4
5
  capmonster_python/datadome.py,sha256=5GQbIiiHN2jYF5il3z7p7_mkac1X7ejx8jkK5-T4RbI,615
@@ -12,8 +13,8 @@ capmonster_python/recaptcha_v3.py,sha256=Yuvvc03FMALSki0WqJqAXGmNVpZqmtqDmhsY7LE
12
13
  capmonster_python/tendi.py,sha256=NCGkdSDXfy_-96aXsYfXfLLQOByKQmy0R4Wn9AJ4FFw,604
13
14
  capmonster_python/turnstile.py,sha256=nS_wny8y5KahEa28NlCaOS8cC_WNffL2xWyZSC08pyw,782
14
15
  capmonster_python/utils.py,sha256=kcHEYw-JqDXHPI8baBdRjdV1UKVo8oOriKhqfDgXxYI,1382
15
- capmonster_python-3.1.0.dist-info/LICENSE,sha256=dsx0VlJZP5DI64ranPoTdQuDmNvrABI9QNm-PctMmM4,1055
16
- capmonster_python-3.1.0.dist-info/METADATA,sha256=MoqTxNNQ_Oe46MNfaAJ_wZR6bLzgDXXSPyw5qXHBG20,4070
17
- capmonster_python-3.1.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
18
- capmonster_python-3.1.0.dist-info/top_level.txt,sha256=QW5VEUvOJfzDxYpD7fSJtGfUxhM3m7U7LFcZ-wRpU70,18
19
- capmonster_python-3.1.0.dist-info/RECORD,,
16
+ capmonster_python-3.2.0.dist-info/LICENSE,sha256=dsx0VlJZP5DI64ranPoTdQuDmNvrABI9QNm-PctMmM4,1055
17
+ capmonster_python-3.2.0.dist-info/METADATA,sha256=cMVRldNlvN3Jy11SW9pUKCSuGRL5P-zv1Jrm4bZcEpY,4070
18
+ capmonster_python-3.2.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
19
+ capmonster_python-3.2.0.dist-info/top_level.txt,sha256=QW5VEUvOJfzDxYpD7fSJtGfUxhM3m7U7LFcZ-wRpU70,18
20
+ capmonster_python-3.2.0.dist-info/RECORD,,