capmonster-python 2.6.2__tar.gz → 3.0.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 (23) hide show
  1. {capmonster_python-2.6.2 → capmonster_python-3.0.0}/PKG-INFO +1 -1
  2. {capmonster_python-2.6.2 → capmonster_python-3.0.0}/capmonster_python/__init__.py +1 -0
  3. {capmonster_python-2.6.2 → capmonster_python-3.0.0}/capmonster_python/turnstile.py +3 -2
  4. {capmonster_python-2.6.2 → capmonster_python-3.0.0}/capmonster_python.egg-info/PKG-INFO +1 -1
  5. {capmonster_python-2.6.2 → capmonster_python-3.0.0}/setup.py +1 -1
  6. {capmonster_python-2.6.2 → capmonster_python-3.0.0}/LICENSE +0 -0
  7. {capmonster_python-2.6.2 → capmonster_python-3.0.0}/README.md +0 -0
  8. {capmonster_python-2.6.2 → capmonster_python-3.0.0}/capmonster_python/capmonster.py +0 -0
  9. {capmonster_python-2.6.2 → capmonster_python-3.0.0}/capmonster_python/compleximage.py +0 -0
  10. {capmonster_python-2.6.2 → capmonster_python-3.0.0}/capmonster_python/datadome.py +0 -0
  11. {capmonster_python-2.6.2 → capmonster_python-3.0.0}/capmonster_python/fun_captcha.py +0 -0
  12. {capmonster_python-2.6.2 → capmonster_python-3.0.0}/capmonster_python/geetest.py +0 -0
  13. {capmonster_python-2.6.2 → capmonster_python-3.0.0}/capmonster_python/hcaptcha.py +0 -0
  14. {capmonster_python-2.6.2 → capmonster_python-3.0.0}/capmonster_python/image_to_text.py +0 -0
  15. {capmonster_python-2.6.2 → capmonster_python-3.0.0}/capmonster_python/recaptcha_v2.py +0 -0
  16. {capmonster_python-2.6.2 → capmonster_python-3.0.0}/capmonster_python/recaptcha_v2_enterprise.py +0 -0
  17. {capmonster_python-2.6.2 → capmonster_python-3.0.0}/capmonster_python/recaptcha_v3.py +0 -0
  18. {capmonster_python-2.6.2 → capmonster_python-3.0.0}/capmonster_python/utils.py +0 -0
  19. {capmonster_python-2.6.2 → capmonster_python-3.0.0}/capmonster_python.egg-info/SOURCES.txt +0 -0
  20. {capmonster_python-2.6.2 → capmonster_python-3.0.0}/capmonster_python.egg-info/dependency_links.txt +0 -0
  21. {capmonster_python-2.6.2 → capmonster_python-3.0.0}/capmonster_python.egg-info/requires.txt +0 -0
  22. {capmonster_python-2.6.2 → capmonster_python-3.0.0}/capmonster_python.egg-info/top_level.txt +0 -0
  23. {capmonster_python-2.6.2 → capmonster_python-3.0.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: capmonster_python
3
- Version: 2.6.2
3
+ Version: 3.0.0
4
4
  Summary: capmonster.cloud library for Python
5
5
  Home-page: https://github.com/alperensert/capmonster_python
6
6
  Author: Alperen Sert
@@ -8,3 +8,4 @@ from .geetest import GeeTestTask
8
8
  from .utils import CapmonsterException
9
9
  from .compleximage import ComplexImageTask
10
10
  from .datadome import DataDomeTask
11
+ from .turnstile import TurnstileTask
@@ -1,8 +1,8 @@
1
- from .capmonster import Proxy
1
+ from .capmonster import Proxy, UserAgent
2
2
  from typing import Union
3
3
 
4
4
 
5
- class TurnstileTask(Proxy):
5
+ class TurnstileTask(UserAgent, Proxy):
6
6
  def __init__(self, client_key):
7
7
  super(TurnstileTask, self).__init__(client_key)
8
8
 
@@ -16,6 +16,7 @@ class TurnstileTask(Proxy):
16
16
  "websiteKey": website_key
17
17
  }
18
18
  }
19
+ data, is_user_agent = self._add_user_agent(data)
19
20
  data, is_proxy = self._is_proxy_task(data)
20
21
  if no_cache:
21
22
  data["task"]["nocache"] = no_cache
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: capmonster_python
3
- Version: 2.6.2
3
+ Version: 3.0.0
4
4
  Summary: capmonster.cloud library for Python
5
5
  Home-page: https://github.com/alperensert/capmonster_python
6
6
  Author: Alperen Sert
@@ -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="2.6.2",
10
+ version="3.0.0",
11
11
  packages=["capmonster_python"],
12
12
  url="https://github.com/alperensert/capmonster_python",
13
13
  long_description=long_description,