capmonster-python 3.1.0__tar.gz → 3.2.0__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.
Files changed (25) hide show
  1. {capmonster_python-3.1.0 → capmonster_python-3.2.0}/PKG-INFO +1 -1
  2. {capmonster_python-3.1.0 → capmonster_python-3.2.0}/capmonster_python/__init__.py +1 -0
  3. capmonster_python-3.2.0/capmonster_python/aws_waf.py +22 -0
  4. {capmonster_python-3.1.0 → capmonster_python-3.2.0}/capmonster_python.egg-info/PKG-INFO +1 -1
  5. {capmonster_python-3.1.0 → capmonster_python-3.2.0}/capmonster_python.egg-info/SOURCES.txt +1 -0
  6. {capmonster_python-3.1.0 → capmonster_python-3.2.0}/setup.py +1 -1
  7. {capmonster_python-3.1.0 → capmonster_python-3.2.0}/LICENSE +0 -0
  8. {capmonster_python-3.1.0 → capmonster_python-3.2.0}/README.md +0 -0
  9. {capmonster_python-3.1.0 → capmonster_python-3.2.0}/capmonster_python/capmonster.py +0 -0
  10. {capmonster_python-3.1.0 → capmonster_python-3.2.0}/capmonster_python/compleximage.py +0 -0
  11. {capmonster_python-3.1.0 → capmonster_python-3.2.0}/capmonster_python/datadome.py +0 -0
  12. {capmonster_python-3.1.0 → capmonster_python-3.2.0}/capmonster_python/fun_captcha.py +0 -0
  13. {capmonster_python-3.1.0 → capmonster_python-3.2.0}/capmonster_python/geetest.py +0 -0
  14. {capmonster_python-3.1.0 → capmonster_python-3.2.0}/capmonster_python/hcaptcha.py +0 -0
  15. {capmonster_python-3.1.0 → capmonster_python-3.2.0}/capmonster_python/image_to_text.py +0 -0
  16. {capmonster_python-3.1.0 → capmonster_python-3.2.0}/capmonster_python/recaptcha_v2.py +0 -0
  17. {capmonster_python-3.1.0 → capmonster_python-3.2.0}/capmonster_python/recaptcha_v2_enterprise.py +0 -0
  18. {capmonster_python-3.1.0 → capmonster_python-3.2.0}/capmonster_python/recaptcha_v3.py +0 -0
  19. {capmonster_python-3.1.0 → capmonster_python-3.2.0}/capmonster_python/tendi.py +0 -0
  20. {capmonster_python-3.1.0 → capmonster_python-3.2.0}/capmonster_python/turnstile.py +0 -0
  21. {capmonster_python-3.1.0 → capmonster_python-3.2.0}/capmonster_python/utils.py +0 -0
  22. {capmonster_python-3.1.0 → capmonster_python-3.2.0}/capmonster_python.egg-info/dependency_links.txt +0 -0
  23. {capmonster_python-3.1.0 → capmonster_python-3.2.0}/capmonster_python.egg-info/requires.txt +0 -0
  24. {capmonster_python-3.1.0 → capmonster_python-3.2.0}/capmonster_python.egg-info/top_level.txt +0 -0
  25. {capmonster_python-3.1.0 → capmonster_python-3.2.0}/setup.cfg +0 -0
@@ -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
@@ -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
@@ -3,6 +3,7 @@ README.md
3
3
  setup.cfg
4
4
  setup.py
5
5
  capmonster_python/__init__.py
6
+ capmonster_python/aws_waf.py
6
7
  capmonster_python/capmonster.py
7
8
  capmonster_python/compleximage.py
8
9
  capmonster_python/datadome.py
@@ -7,7 +7,7 @@ with open(path.join(this_directory, "README.md"), encoding="utf-8") as f:
7
7
 
8
8
  setup(
9
9
  name="capmonster_python",
10
- version="3.1.0",
10
+ version="3.2.0",
11
11
  packages=["capmonster_python"],
12
12
  url="https://github.com/alperensert/capmonster_python",
13
13
  long_description=long_description,