python3-capsolver 0.9.2__tar.gz → 0.9.4__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 (51) hide show
  1. python3_capsolver-0.9.4/LICENSE +21 -0
  2. python3_capsolver-0.9.4/MANIFEST.in +1 -0
  3. {python3-capsolver-0.9.2 → python3_capsolver-0.9.4}/PKG-INFO +16 -41
  4. python3_capsolver-0.9.4/README.md +61 -0
  5. python3_capsolver-0.9.4/pyproject.toml +104 -0
  6. python3_capsolver-0.9.4/src/python3_capsolver/__init__.py +1 -0
  7. python3_capsolver-0.9.4/src/python3_capsolver/__version__.py +1 -0
  8. {python3-capsolver-0.9.2 → python3_capsolver-0.9.4/src}/python3_capsolver/core/serializer.py +2 -3
  9. {python3-capsolver-0.9.2 → python3_capsolver-0.9.4/src}/python3_capsolver.egg-info/PKG-INFO +16 -41
  10. python3_capsolver-0.9.4/src/python3_capsolver.egg-info/SOURCES.txt +43 -0
  11. python3_capsolver-0.9.4/src/python3_capsolver.egg-info/requires.txt +4 -0
  12. python3_capsolver-0.9.4/tests/test_akamai.py +106 -0
  13. python3_capsolver-0.9.4/tests/test_binance.py +83 -0
  14. python3_capsolver-0.9.4/tests/test_cloudflare.py +73 -0
  15. python3_capsolver-0.9.4/tests/test_control.py +45 -0
  16. python3_capsolver-0.9.4/tests/test_core.py +124 -0
  17. python3_capsolver-0.9.4/tests/test_datadome_slider.py +96 -0
  18. python3_capsolver-0.9.4/tests/test_fun_captcha.py +302 -0
  19. python3_capsolver-0.9.4/tests/test_gee_test.py +207 -0
  20. python3_capsolver-0.9.4/tests/test_hcaptcha.py +294 -0
  21. python3_capsolver-0.9.4/tests/test_image_to_text.py +80 -0
  22. python3_capsolver-0.9.4/tests/test_imperva.py +93 -0
  23. python3_capsolver-0.9.4/tests/test_mt_captcha.py +94 -0
  24. python3_capsolver-0.9.4/tests/test_recaptcha.py +284 -0
  25. python3-capsolver-0.9.2/python3_capsolver/__version__.py +0 -1
  26. python3-capsolver-0.9.2/python3_capsolver/core/__init__.py +0 -0
  27. python3-capsolver-0.9.2/python3_capsolver.egg-info/SOURCES.txt +0 -28
  28. python3-capsolver-0.9.2/python3_capsolver.egg-info/not-zip-safe +0 -1
  29. python3-capsolver-0.9.2/python3_capsolver.egg-info/requires.txt +0 -4
  30. python3-capsolver-0.9.2/setup.py +0 -141
  31. {python3-capsolver-0.9.2 → python3_capsolver-0.9.4}/setup.cfg +0 -0
  32. {python3-capsolver-0.9.2 → python3_capsolver-0.9.4/src}/python3_capsolver/akamai.py +0 -0
  33. {python3-capsolver-0.9.2 → python3_capsolver-0.9.4/src}/python3_capsolver/aws_waf.py +0 -0
  34. {python3-capsolver-0.9.2 → python3_capsolver-0.9.4/src}/python3_capsolver/binance.py +0 -0
  35. {python3-capsolver-0.9.2 → python3_capsolver-0.9.4/src}/python3_capsolver/cloudflare.py +0 -0
  36. {python3-capsolver-0.9.2 → python3_capsolver-0.9.4/src}/python3_capsolver/control.py +0 -0
  37. {python3-capsolver-0.9.2/python3_capsolver → python3_capsolver-0.9.4/src/python3_capsolver/core}/__init__.py +0 -0
  38. {python3-capsolver-0.9.2 → python3_capsolver-0.9.4/src}/python3_capsolver/core/base.py +0 -0
  39. {python3-capsolver-0.9.2 → python3_capsolver-0.9.4/src}/python3_capsolver/core/config.py +0 -0
  40. {python3-capsolver-0.9.2 → python3_capsolver-0.9.4/src}/python3_capsolver/core/enum.py +0 -0
  41. {python3-capsolver-0.9.2 → python3_capsolver-0.9.4/src}/python3_capsolver/cyber_si_ara.py +0 -0
  42. {python3-capsolver-0.9.2 → python3_capsolver-0.9.4/src}/python3_capsolver/datadome_slider.py +0 -0
  43. {python3-capsolver-0.9.2 → python3_capsolver-0.9.4/src}/python3_capsolver/fun_captcha.py +0 -0
  44. {python3-capsolver-0.9.2 → python3_capsolver-0.9.4/src}/python3_capsolver/gee_test.py +0 -0
  45. {python3-capsolver-0.9.2 → python3_capsolver-0.9.4/src}/python3_capsolver/hcaptcha.py +0 -0
  46. {python3-capsolver-0.9.2 → python3_capsolver-0.9.4/src}/python3_capsolver/image_to_text.py +0 -0
  47. {python3-capsolver-0.9.2 → python3_capsolver-0.9.4/src}/python3_capsolver/imperva.py +0 -0
  48. {python3-capsolver-0.9.2 → python3_capsolver-0.9.4/src}/python3_capsolver/mt_captcha.py +0 -0
  49. {python3-capsolver-0.9.2 → python3_capsolver-0.9.4/src}/python3_capsolver/recaptcha.py +0 -0
  50. {python3-capsolver-0.9.2 → python3_capsolver-0.9.4/src}/python3_capsolver.egg-info/dependency_links.txt +0 -0
  51. {python3-capsolver-0.9.2 → python3_capsolver-0.9.4/src}/python3_capsolver.egg-info/top_level.txt +0 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Andrei
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ include README.md LICENSE
@@ -1,34 +1,15 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python3-capsolver
3
- Version: 0.9.2
3
+ Version: 0.9.4
4
4
  Summary: Python 3.8+ Capsolver library with AIO module.
5
- Home-page: https://andreidrang.github.io/python3-capsolver/
6
- Author: AndreiDrang
7
- Author-email: python-captcha@pm.me
8
- License: MIT
5
+ Author-email: AndreiDrang <python-captcha@pm.me>
6
+ License: MIT License
7
+ Project-URL: Homepage, https://andreidrang.github.io/python3-capsolver/
9
8
  Project-URL: Documentation, https://andreidrang.github.io/python3-capsolver/
10
- Project-URL: Source, https://github.com/AndreiDrang/python3-capsolver
11
- Keywords: captcha
12
- recaptcha
13
- geetest
14
- hcaptcha
15
- capypuzzle
16
- rotatecaptcha
17
- funcaptcha
18
- keycaptcha
19
- python3
20
- python-library
21
- capsolver
22
- datadomeslider
23
- datadome
24
- mtcaptcha
25
- turnstile
26
- cloudflare
27
- amazon
28
- amazon_waf
29
- akamai
30
- imperva
31
- binance
9
+ Project-URL: Repository, https://github.com/AndreiDrang/python3-capsolver
10
+ Project-URL: Issues, https://github.com/AndreiDrang/python3-capsolver/issues
11
+ Project-URL: Changelog, https://github.com/AndreiDrang/python3-capsolver/releases
12
+ Keywords: captcha,recaptcha,geetest,hcaptcha,capypuzzle,rotatecaptcha,funcaptcha,keycaptcha,python3,python-library,capsolver,datadomeslider,datadome,mtcaptcha,turnstile,cloudflare,amazon,amazon_waf,akamai,imperva,binance
32
13
  Classifier: License :: OSI Approved :: MIT License
33
14
  Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
34
15
  Classifier: Development Status :: 5 - Production/Stable
@@ -39,23 +20,23 @@ Classifier: Programming Language :: Python :: 3.8
39
20
  Classifier: Programming Language :: Python :: 3.9
40
21
  Classifier: Programming Language :: Python :: 3.10
41
22
  Classifier: Programming Language :: Python :: 3.11
23
+ Classifier: Programming Language :: Python :: 3.12
42
24
  Classifier: Framework :: AsyncIO
43
25
  Classifier: Operating System :: Unix
44
26
  Classifier: Operating System :: Microsoft :: Windows
45
27
  Classifier: Operating System :: MacOS
46
- Requires-Python: >=3.8.0
28
+ Requires-Python: >=3.8
47
29
  Description-Content-Type: text/markdown
48
-
30
+ License-File: LICENSE
31
+ Requires-Dist: requests>=2.21.0
32
+ Requires-Dist: aiohttp>=3.9.2
33
+ Requires-Dist: pydantic>=2.5.0
34
+ Requires-Dist: tenacity<10,>=8
49
35
 
50
36
  # python3-capsolver
51
37
 
52
- ![Logo](https://red-panda-dev.xyz/media/images/Capsolver.max-800x600.png)
38
+ ![Logo](https://red-panda-dev.xyz/media/images/Capsolver_ugBYrN0.original.png)
53
39
 
54
- <a href="https://dashboard.capsolver.com/passport/register?inviteCode=kQTn-tG07Jb1">
55
- <img src="https://cdn.discordapp.com/attachments/1105172394655625306/1105180101802471575/20221207-160749.gif" alt="Capsolver's Banner">
56
- </a>
57
- <br>
58
- At the lowest price on the market, you may receive a variety of solutions, including reCAPTCHA V2, reCAPTCHA V3, hCaptcha, hCaptcha Click, FunCaptcha, picture-to-text, and more. With this service, 0.1s is the slowest speed ever measured.
59
40
  <hr>
60
41
 
61
42
  [![PyPI version](https://badge.fury.io/py/python3-capsolver.svg)](https://badge.fury.io/py/python3-capsolver)
@@ -85,12 +66,6 @@ If you have any questions, please send a message to the [Telegram](https://t.me/
85
66
 
86
67
  Or email python-captcha@pm.me
87
68
 
88
- ***
89
-
90
- You can check our other projects here - [RedPandaDev group](https://red-panda-dev.xyz/blog/). For example - [Torrents Tracker bot](https://t.me/torrents_tracker_bot) for Telegram.
91
-
92
- ***
93
-
94
69
  ## How to install?
95
70
 
96
71
  We recommend using the latest version of Python. `python3-capsolver` supports Python 3.7+.
@@ -0,0 +1,61 @@
1
+ # python3-capsolver
2
+
3
+ ![Logo](https://red-panda-dev.xyz/media/images/Capsolver_ugBYrN0.original.png)
4
+
5
+ <hr>
6
+
7
+ [![PyPI version](https://badge.fury.io/py/python3-capsolver.svg)](https://badge.fury.io/py/python3-capsolver)
8
+ [![Python versions](https://img.shields.io/pypi/pyversions/python3-capsolver.svg?logo=python&logoColor=FBE072)](https://badge.fury.io/py/python3-capsolver)
9
+ [![Downloads](https://static.pepy.tech/badge/python3-capsolver/month)](https://pepy.tech/project/python3-capsolver)
10
+
11
+ [![Maintainability](https://api.codeclimate.com/v1/badges/3c30167b5fb37a0775ea/maintainability)](https://codeclimate.com/github/AndreiDrang/python3-capsolver/maintainability)
12
+ [![Codacy Badge](https://app.codacy.com/project/badge/Grade/323d4eda0fe1477bbea8fe8902b9e97e)](https://www.codacy.com/gh/AndreiDrang/python3-capsolver/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=AndreiDrang/python3-capsolver&amp;utm_campaign=Badge_Grade)
13
+ [![codecov](https://codecov.io/gh/AndreiDrang/python3-capsolver/branch/main/graph/badge.svg?token=2L4VVIF4G8)](https://codecov.io/gh/AndreiDrang/python3-capsolver)
14
+
15
+ [![Sphinx build](https://github.com/AndreiDrang/python3-capsolver/actions/workflows/sphinx.yml/badge.svg?branch=release)](https://github.com/AndreiDrang/python3-capsolver/actions/workflows/sphinx.yml)
16
+ [![Build](https://github.com/AndreiDrang/python3-capsolver/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/AndreiDrang/python3-capsolver/actions/workflows/build.yml)
17
+ [![Installation](https://github.com/AndreiDrang/python3-capsolver/actions/workflows/install.yml/badge.svg?branch=main)](https://github.com/AndreiDrang/python3-capsolver/actions/workflows/install.yml)
18
+ [![Tests](https://github.com/AndreiDrang/python3-capsolver/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/AndreiDrang/python3-capsolver/actions/workflows/test.yml)
19
+ [![Lint](https://github.com/AndreiDrang/python3-capsolver/actions/workflows/lint.yml/badge.svg?branch=main)](https://github.com/AndreiDrang/python3-capsolver/actions/workflows/lint.yml)
20
+
21
+
22
+ Python 3 library for [Capsolver](https://dashboard.capsolver.com/passport/register?inviteCode=kQTn-tG07Jb1) service API.
23
+
24
+ Tested on UNIX based OS.
25
+
26
+ The library is intended for software developers and is used to work with the [Capsolver](https://dashboard.capsolver.com/passport/register?inviteCode=kQTn-tG07Jb1) service API.
27
+
28
+ ***
29
+
30
+ If you have any questions, please send a message to the [Telegram](https://t.me/pythoncaptcha) chat room.
31
+
32
+ Or email python-captcha@pm.me
33
+
34
+ ## How to install?
35
+
36
+ We recommend using the latest version of Python. `python3-capsolver` supports Python 3.7+.
37
+
38
+ ### pip
39
+
40
+ ```bash
41
+ pip install python3-capsolver
42
+ ```
43
+
44
+ ## How to use?
45
+
46
+ Is described in the [documentation-website](https://andreidrang.github.io/python3-capsolver/).
47
+
48
+
49
+ ## How to test?
50
+
51
+ 1. You need set ``API_KEY`` in your environment(get this value from you account).
52
+ 2. Run command ``make tests``, from root directory.
53
+
54
+
55
+ ### Changelog
56
+
57
+ Check [releases page](https://github.com/AndreiDrang/python3-capsolver/releases).
58
+
59
+ ### How to get API Key to work with the library
60
+ 1. On the page - https://dashboard.capsolver.com/overview/user-center
61
+ 2. Find it: ![img.png](files/img.png)
@@ -0,0 +1,104 @@
1
+ [tool.black]
2
+ line-length = 120
3
+ target-version = ['py310']
4
+ include = '\.pyi?$'
5
+ exclude = '''
6
+ /(
7
+ \.git
8
+ | \.hg
9
+ | \.mypy_cache
10
+ | \.tox
11
+ | \.venv
12
+ | _build
13
+ | buck-out
14
+ | build
15
+ | dist
16
+ )/
17
+ '''
18
+
19
+ [tool.isort]
20
+ profile = "black"
21
+ line_length = 120
22
+ length_sort = true
23
+
24
+ [tool.pytest.ini_options]
25
+ minversion = "7.0"
26
+ asyncio_mode = "auto"
27
+ testpaths = [
28
+ "tests",
29
+ ]
30
+ addopts = "-vv --tb=short --durations=10"
31
+
32
+ [build-system]
33
+ requires = ["setuptools"]
34
+ build-backend = "setuptools.build_meta"
35
+
36
+ [project]
37
+ name = "python3-capsolver"
38
+ dynamic = ["version"]
39
+ authors = [
40
+ {name = "AndreiDrang", email = "python-captcha@pm.me"},
41
+ ]
42
+ description = "Python 3.8+ Capsolver library with AIO module."
43
+ readme = "README.md"
44
+ requires-python = ">=3.8"
45
+ keywords = [ "captcha",
46
+ "recaptcha",
47
+ "geetest",
48
+ "hcaptcha",
49
+ "capypuzzle",
50
+ "rotatecaptcha",
51
+ "funcaptcha",
52
+ "keycaptcha",
53
+ "python3",
54
+ "python-library",
55
+ "capsolver",
56
+ "datadomeslider",
57
+ "datadome",
58
+ "mtcaptcha",
59
+ "turnstile",
60
+ "cloudflare",
61
+ "amazon",
62
+ "amazon_waf",
63
+ "akamai",
64
+ "imperva",
65
+ "binance"
66
+ ]
67
+ license = {text = "MIT License"}
68
+ classifiers = [
69
+ "License :: OSI Approved :: MIT License",
70
+ "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
71
+ "Development Status :: 5 - Production/Stable",
72
+ "Programming Language :: Python",
73
+ "Programming Language :: Python :: 3",
74
+ "Programming Language :: Python :: 3 :: Only",
75
+ "Programming Language :: Python :: 3.8",
76
+ "Programming Language :: Python :: 3.9",
77
+ "Programming Language :: Python :: 3.10",
78
+ "Programming Language :: Python :: 3.11",
79
+ "Programming Language :: Python :: 3.12",
80
+ "Framework :: AsyncIO",
81
+ "Operating System :: Unix",
82
+ "Operating System :: Microsoft :: Windows",
83
+ "Operating System :: MacOS",
84
+ ]
85
+ dependencies = [
86
+ "requests>=2.21.0",
87
+ "aiohttp>=3.9.2",
88
+ "pydantic>=2.5.0",
89
+ "tenacity>=8,<10"
90
+ ]
91
+
92
+ [tool.setuptools.packages.find]
93
+ where = ["src"]
94
+ include = ["python3_capsolver*"]
95
+
96
+ [tool.setuptools.dynamic]
97
+ version = {attr = "python3_capsolver.__version__"}
98
+
99
+ [project.urls]
100
+ Homepage = "https://andreidrang.github.io/python3-capsolver/"
101
+ Documentation = "https://andreidrang.github.io/python3-capsolver/"
102
+ Repository = "https://github.com/AndreiDrang/python3-capsolver"
103
+ Issues = "https://github.com/AndreiDrang/python3-capsolver/issues"
104
+ Changelog = "https://github.com/AndreiDrang/python3-capsolver/releases"
@@ -0,0 +1 @@
1
+ from python3_capsolver.__version__ import __version__ # noqa
@@ -0,0 +1 @@
1
+ __version__ = "0.9.4"
@@ -45,7 +45,7 @@ class CaptchaResponseSer(ResponseSer):
45
45
  solution: Dict[str, Any] = Field(None, description="Task result data. Different for each type of task.")
46
46
 
47
47
  class Config:
48
- allow_population_by_field_name = True
48
+ populate_by_name = True
49
49
 
50
50
 
51
51
  class ControlResponseSer(ResponseSer):
@@ -120,8 +120,7 @@ class DatadomeSliderSer(TaskSer):
120
120
  userAgent: str = Field(..., description="Browser's User-Agent which is used in emulation")
121
121
 
122
122
 
123
- class CloudflareTurnstileSer(WebsiteDataOptionsSer):
124
- ...
123
+ class CloudflareTurnstileSer(WebsiteDataOptionsSer): ...
125
124
 
126
125
 
127
126
  class CyberSiAraSer(WebsiteDataOptionsSer):
@@ -1,34 +1,15 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python3-capsolver
3
- Version: 0.9.2
3
+ Version: 0.9.4
4
4
  Summary: Python 3.8+ Capsolver library with AIO module.
5
- Home-page: https://andreidrang.github.io/python3-capsolver/
6
- Author: AndreiDrang
7
- Author-email: python-captcha@pm.me
8
- License: MIT
5
+ Author-email: AndreiDrang <python-captcha@pm.me>
6
+ License: MIT License
7
+ Project-URL: Homepage, https://andreidrang.github.io/python3-capsolver/
9
8
  Project-URL: Documentation, https://andreidrang.github.io/python3-capsolver/
10
- Project-URL: Source, https://github.com/AndreiDrang/python3-capsolver
11
- Keywords: captcha
12
- recaptcha
13
- geetest
14
- hcaptcha
15
- capypuzzle
16
- rotatecaptcha
17
- funcaptcha
18
- keycaptcha
19
- python3
20
- python-library
21
- capsolver
22
- datadomeslider
23
- datadome
24
- mtcaptcha
25
- turnstile
26
- cloudflare
27
- amazon
28
- amazon_waf
29
- akamai
30
- imperva
31
- binance
9
+ Project-URL: Repository, https://github.com/AndreiDrang/python3-capsolver
10
+ Project-URL: Issues, https://github.com/AndreiDrang/python3-capsolver/issues
11
+ Project-URL: Changelog, https://github.com/AndreiDrang/python3-capsolver/releases
12
+ Keywords: captcha,recaptcha,geetest,hcaptcha,capypuzzle,rotatecaptcha,funcaptcha,keycaptcha,python3,python-library,capsolver,datadomeslider,datadome,mtcaptcha,turnstile,cloudflare,amazon,amazon_waf,akamai,imperva,binance
32
13
  Classifier: License :: OSI Approved :: MIT License
33
14
  Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
34
15
  Classifier: Development Status :: 5 - Production/Stable
@@ -39,23 +20,23 @@ Classifier: Programming Language :: Python :: 3.8
39
20
  Classifier: Programming Language :: Python :: 3.9
40
21
  Classifier: Programming Language :: Python :: 3.10
41
22
  Classifier: Programming Language :: Python :: 3.11
23
+ Classifier: Programming Language :: Python :: 3.12
42
24
  Classifier: Framework :: AsyncIO
43
25
  Classifier: Operating System :: Unix
44
26
  Classifier: Operating System :: Microsoft :: Windows
45
27
  Classifier: Operating System :: MacOS
46
- Requires-Python: >=3.8.0
28
+ Requires-Python: >=3.8
47
29
  Description-Content-Type: text/markdown
48
-
30
+ License-File: LICENSE
31
+ Requires-Dist: requests>=2.21.0
32
+ Requires-Dist: aiohttp>=3.9.2
33
+ Requires-Dist: pydantic>=2.5.0
34
+ Requires-Dist: tenacity<10,>=8
49
35
 
50
36
  # python3-capsolver
51
37
 
52
- ![Logo](https://red-panda-dev.xyz/media/images/Capsolver.max-800x600.png)
38
+ ![Logo](https://red-panda-dev.xyz/media/images/Capsolver_ugBYrN0.original.png)
53
39
 
54
- <a href="https://dashboard.capsolver.com/passport/register?inviteCode=kQTn-tG07Jb1">
55
- <img src="https://cdn.discordapp.com/attachments/1105172394655625306/1105180101802471575/20221207-160749.gif" alt="Capsolver's Banner">
56
- </a>
57
- <br>
58
- At the lowest price on the market, you may receive a variety of solutions, including reCAPTCHA V2, reCAPTCHA V3, hCaptcha, hCaptcha Click, FunCaptcha, picture-to-text, and more. With this service, 0.1s is the slowest speed ever measured.
59
40
  <hr>
60
41
 
61
42
  [![PyPI version](https://badge.fury.io/py/python3-capsolver.svg)](https://badge.fury.io/py/python3-capsolver)
@@ -85,12 +66,6 @@ If you have any questions, please send a message to the [Telegram](https://t.me/
85
66
 
86
67
  Or email python-captcha@pm.me
87
68
 
88
- ***
89
-
90
- You can check our other projects here - [RedPandaDev group](https://red-panda-dev.xyz/blog/). For example - [Torrents Tracker bot](https://t.me/torrents_tracker_bot) for Telegram.
91
-
92
- ***
93
-
94
69
  ## How to install?
95
70
 
96
71
  We recommend using the latest version of Python. `python3-capsolver` supports Python 3.7+.
@@ -0,0 +1,43 @@
1
+ LICENSE
2
+ MANIFEST.in
3
+ README.md
4
+ pyproject.toml
5
+ src/python3_capsolver/__init__.py
6
+ src/python3_capsolver/__version__.py
7
+ src/python3_capsolver/akamai.py
8
+ src/python3_capsolver/aws_waf.py
9
+ src/python3_capsolver/binance.py
10
+ src/python3_capsolver/cloudflare.py
11
+ src/python3_capsolver/control.py
12
+ src/python3_capsolver/cyber_si_ara.py
13
+ src/python3_capsolver/datadome_slider.py
14
+ src/python3_capsolver/fun_captcha.py
15
+ src/python3_capsolver/gee_test.py
16
+ src/python3_capsolver/hcaptcha.py
17
+ src/python3_capsolver/image_to_text.py
18
+ src/python3_capsolver/imperva.py
19
+ src/python3_capsolver/mt_captcha.py
20
+ src/python3_capsolver/recaptcha.py
21
+ src/python3_capsolver.egg-info/PKG-INFO
22
+ src/python3_capsolver.egg-info/SOURCES.txt
23
+ src/python3_capsolver.egg-info/dependency_links.txt
24
+ src/python3_capsolver.egg-info/requires.txt
25
+ src/python3_capsolver.egg-info/top_level.txt
26
+ src/python3_capsolver/core/__init__.py
27
+ src/python3_capsolver/core/base.py
28
+ src/python3_capsolver/core/config.py
29
+ src/python3_capsolver/core/enum.py
30
+ src/python3_capsolver/core/serializer.py
31
+ tests/test_akamai.py
32
+ tests/test_binance.py
33
+ tests/test_cloudflare.py
34
+ tests/test_control.py
35
+ tests/test_core.py
36
+ tests/test_datadome_slider.py
37
+ tests/test_fun_captcha.py
38
+ tests/test_gee_test.py
39
+ tests/test_hcaptcha.py
40
+ tests/test_image_to_text.py
41
+ tests/test_imperva.py
42
+ tests/test_mt_captcha.py
43
+ tests/test_recaptcha.py
@@ -0,0 +1,4 @@
1
+ requests>=2.21.0
2
+ aiohttp>=3.9.2
3
+ pydantic>=2.5.0
4
+ tenacity<10,>=8
@@ -0,0 +1,106 @@
1
+ import pytest
2
+
3
+ from tests.conftest import BaseTest
4
+ from python3_capsolver.akamai import Akamai
5
+ from python3_capsolver.core.enum import AntiAkamaiTaskEnm
6
+ from python3_capsolver.core.serializer import CaptchaResponseSer
7
+
8
+
9
+ class TestAkamaiBase(BaseTest):
10
+ def test_captcha_handler_exist(self):
11
+ assert "captcha_handler" in Akamai.__dict__.keys()
12
+
13
+ def test_aio_captcha_handler_exist(self):
14
+ assert "aio_captcha_handler" in Akamai.__dict__.keys()
15
+
16
+ def test_wrong_captcha_type(self):
17
+ with pytest.raises(ValueError):
18
+ Akamai(
19
+ api_key=self.get_random_string(36),
20
+ captcha_type="test",
21
+ )
22
+
23
+ def test_no_captcha_type(self):
24
+ with pytest.raises(TypeError):
25
+ Akamai(api_key=self.get_random_string(36))
26
+
27
+
28
+ class TestAkamaiBMPBase(BaseTest):
29
+ captcha_type = AntiAkamaiTaskEnm.AntiAkamaiBMPTask
30
+
31
+ def test_solve(self):
32
+ instance = Akamai(api_key=self.API_KEY, captcha_type=self.captcha_type)
33
+ result = instance.captcha_handler()
34
+ assert isinstance(result, CaptchaResponseSer)
35
+ assert result.errorId == 0
36
+ assert result.errorCode is None
37
+ assert result.errorDescription is None
38
+ assert result.solution is not None
39
+
40
+ async def test_aio_solve(self):
41
+ instance = Akamai(api_key=self.API_KEY, captcha_type=self.captcha_type)
42
+ result = await instance.aio_captcha_handler()
43
+ assert isinstance(result, CaptchaResponseSer)
44
+ assert result.errorId == 0
45
+ assert result.errorCode is None
46
+ assert result.errorDescription is None
47
+ assert result.solution is not None
48
+
49
+ def test_solve_context(self):
50
+ with Akamai(api_key=self.API_KEY, captcha_type=self.captcha_type) as instance:
51
+ result = instance.captcha_handler()
52
+ assert isinstance(result, CaptchaResponseSer)
53
+ assert result.errorId == 0
54
+ assert result.errorCode is None
55
+ assert result.errorDescription is None
56
+ assert result.solution is not None
57
+
58
+ async def test_aio_solve_context(self):
59
+ with Akamai(api_key=self.API_KEY, captcha_type=self.captcha_type) as instance:
60
+ result = await instance.aio_captcha_handler()
61
+ assert isinstance(result, CaptchaResponseSer)
62
+ assert result.errorId == 0
63
+ assert result.errorCode is None
64
+ assert result.errorDescription is None
65
+ assert result.solution is not None
66
+
67
+
68
+ class TestAkamaiWebBase(BaseTest):
69
+ captcha_type = AntiAkamaiTaskEnm.AntiAkamaiWebTask
70
+ akamai_web_url = "https://www.xxxx.com/nMRH2/aYJ/PQ4b/32/0peDlm/b9f5NJcXf7tiYE/OE9CMGI1/Nzsn/bCVKCnA"
71
+
72
+ def test_solve(self):
73
+ instance = Akamai(api_key=self.API_KEY, captcha_type=self.captcha_type, url=self.akamai_web_url)
74
+ result = instance.captcha_handler()
75
+ assert isinstance(result, CaptchaResponseSer)
76
+ assert result.errorId == 0
77
+ assert result.errorCode is None
78
+ assert result.errorDescription is None
79
+ assert result.solution is not None
80
+
81
+ async def test_aio_solve(self):
82
+ instance = Akamai(api_key=self.API_KEY, captcha_type=self.captcha_type, url=self.akamai_web_url)
83
+ result = await instance.aio_captcha_handler()
84
+ assert isinstance(result, CaptchaResponseSer)
85
+ assert result.errorId == 0
86
+ assert result.errorCode is None
87
+ assert result.errorDescription is None
88
+ assert result.solution is not None
89
+
90
+ def test_solve_context(self):
91
+ with Akamai(api_key=self.API_KEY, captcha_type=self.captcha_type, url=self.akamai_web_url) as instance:
92
+ result = instance.captcha_handler()
93
+ assert isinstance(result, CaptchaResponseSer)
94
+ assert result.errorId == 0
95
+ assert result.errorCode is None
96
+ assert result.errorDescription is None
97
+ assert result.solution is not None
98
+
99
+ async def test_aio_solve_context(self):
100
+ with Akamai(api_key=self.API_KEY, captcha_type=self.captcha_type, url=self.akamai_web_url) as instance:
101
+ result = await instance.aio_captcha_handler()
102
+ assert isinstance(result, CaptchaResponseSer)
103
+ assert result.errorId == 0
104
+ assert result.errorCode is None
105
+ assert result.errorDescription is None
106
+ assert result.solution is not None
@@ -0,0 +1,83 @@
1
+ import pytest
2
+
3
+ from tests.conftest import BaseTest
4
+ from python3_capsolver.binance import Binance
5
+ from python3_capsolver.core.enum import BinanceCaptchaTaskEnm
6
+ from python3_capsolver.core.serializer import CaptchaResponseSer
7
+
8
+
9
+ class TestBinanceBase(BaseTest):
10
+ def test_captcha_handler_exist(self):
11
+ assert "captcha_handler" in Binance.__dict__.keys()
12
+
13
+ def test_aio_captcha_handler_exist(self):
14
+ assert "aio_captcha_handler" in Binance.__dict__.keys()
15
+
16
+ def test_wrong_captcha_type(self):
17
+ with pytest.raises(ValueError):
18
+ Binance(
19
+ api_key=self.get_random_string(36),
20
+ captcha_type="test",
21
+ websiteURL=self.get_random_string(36),
22
+ validateId=self.get_random_string(36),
23
+ )
24
+
25
+ def test_no_captcha_type(self):
26
+ with pytest.raises(TypeError):
27
+ Binance(
28
+ api_key=self.get_random_string(36),
29
+ websiteURL=self.get_random_string(36),
30
+ validateId=self.get_random_string(36),
31
+ )
32
+
33
+ def test_no_websiteURL(self):
34
+ with pytest.raises(TypeError):
35
+ Binance(
36
+ api_key=self.get_random_string(36),
37
+ captcha_type=BinanceCaptchaTaskEnm.BinanceCaptchaTask,
38
+ validateId=self.get_random_string(36),
39
+ )
40
+
41
+ def test_no_validateId(self):
42
+ with pytest.raises(TypeError):
43
+ Binance(
44
+ api_key=self.get_random_string(36),
45
+ captcha_type=BinanceCaptchaTaskEnm.BinanceCaptchaTask,
46
+ websiteURL=self.get_random_string(36),
47
+ )
48
+
49
+
50
+ class TestBinanceCaptchaTaskBase(BaseTest):
51
+ def test_instance(self):
52
+ instance = Binance(
53
+ api_key=self.API_KEY,
54
+ captcha_type=BinanceCaptchaTaskEnm.BinanceCaptchaTask,
55
+ websiteURL="https://www.milanuncios.com/",
56
+ validateId="3621a4fef82f4ab4a00e8b07465761c5",
57
+ )
58
+
59
+ def test_solve(self):
60
+ instance = Binance(
61
+ api_key=self.API_KEY,
62
+ captcha_type=BinanceCaptchaTaskEnm.BinanceCaptchaTask,
63
+ websiteURL="https://www.milanuncios.com/",
64
+ validateId="3621a4fef82f4ab4a00e8b07465761c5",
65
+ **{"proxyType": "socks5", "proxyAddress": "72.217.216.239", "proxyPort": 4145},
66
+ )
67
+ result = instance.captcha_handler()
68
+ assert isinstance(result, CaptchaResponseSer)
69
+ assert result.errorId == 1
70
+ assert result.errorCode == "ERROR_PROXY_CONNECT_REFUSED"
71
+
72
+ async def test_aio_solve(self):
73
+ instance = Binance(
74
+ api_key=self.API_KEY,
75
+ captcha_type=BinanceCaptchaTaskEnm.BinanceCaptchaTask,
76
+ websiteURL="https://www.milanuncios.com/",
77
+ validateId="3621a4fef82f4ab4a00e8b07465761c5",
78
+ **{"proxyType": "socks5", "proxyAddress": "72.217.216.239", "proxyPort": 4145},
79
+ )
80
+ result = await instance.aio_captcha_handler()
81
+ assert isinstance(result, CaptchaResponseSer)
82
+ assert result.errorId == 1
83
+ assert result.errorCode == "ERROR_PROXY_CONNECT_REFUSED"