capmonstercloudclient 4.3.3__tar.gz → 4.3.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.
- {capmonstercloudclient-4.3.3/capmonstercloudclient.egg-info → capmonstercloudclient-4.3.4}/PKG-INFO +1 -1
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/RecaptchaV2EnterpiseRequest.py +16 -2
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/utils.py +1 -1
- capmonstercloudclient-4.3.4/capmonstercloud_client/version.txt +1 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4/capmonstercloudclient.egg-info}/PKG-INFO +1 -1
- capmonstercloudclient-4.3.3/capmonstercloud_client/version.txt +0 -1
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/LICENSE +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/MANIFEST.in +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/README.md +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/CapMonsterCloudClient.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/GetResultTimeouts.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/__init__.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/captchaResult.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/clientOptions.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/exceptions.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requestController.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/AlibabaCustomTaskRequest.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/AltchaCustomTaskRequest.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/AmazonWafRequest.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/BasiliskCustomTaskRequest.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/BinanceTaskRequest.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/CastleCustomTaskRequest.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/ComplexImageTaskBase.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/CustomTaskRequestBase.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/DataDomeCustomTaskRequest.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/FriendlyCustomTaskRequest.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/FuncaptchaComplexImageTask.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/FuncaptchaRequest.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/GeetestRequest.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/HcaptchaComplexImageTask.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/HcaptchaRequest.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/HuntCustomTaskRequest.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/ImageToTextRequest.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/ImpervaCustomTaskRequest.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/MTCaptchaRequest.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/ProsopoTaskRequest.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/RecaptchaComplexImageTask.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/RecaptchaV2Request.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/RecaptchaV3EnterpriseRequest.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/RecaptchaV3ProxylessRequest.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/RecognitionComplexImageTaskRequest.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/TemuCustomTaskRequest.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/TenDiCustomTaskRequest.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/TspdCustomTaskRequest.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/TurnstileRequest.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/YidunRequest.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/__init__.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/baseRequest.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/baseRequestWithProxy.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/enums.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/proxy_info.py +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloudclient.egg-info/SOURCES.txt +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloudclient.egg-info/dependency_links.txt +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloudclient.egg-info/requires.txt +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloudclient.egg-info/top_level.txt +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/pyproject.toml +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/requirements.txt +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/setup.cfg +0 -0
- {capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/setup.py +0 -0
{capmonstercloudclient-4.3.3/capmonstercloudclient.egg-info → capmonstercloudclient-4.3.4}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: capmonstercloudclient
|
|
3
|
-
Version: 4.3.
|
|
3
|
+
Version: 4.3.4
|
|
4
4
|
Summary: Official CapMonster Cloud Python SDK: captcha solver & captcha bypass for reCAPTCHA, Cloudflare Turnstile, DataDome and GeeTest. A 2captcha and capsolver alternative.
|
|
5
5
|
Home-page: https://github.com/CapMonsterCloud/capmonster-python-captcha-solver
|
|
6
6
|
Author: CapMonster Cloud
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from typing import Dict, Union, Optional
|
|
2
|
-
from pydantic import Field
|
|
2
|
+
from pydantic import Field, field_validator
|
|
3
3
|
|
|
4
4
|
from .baseRequestWithProxy import BaseRequestWithProxy
|
|
5
5
|
|
|
@@ -22,6 +22,8 @@ class RecaptchaV2EnterpriseRequest(BaseRequestWithProxy):
|
|
|
22
22
|
domain.
|
|
23
23
|
pageAction: The action name configured for the reCAPTCHA Enterprise
|
|
24
24
|
challenge on the target website.
|
|
25
|
+
minScore: The minimum acceptable score for the token, in the range
|
|
26
|
+
0.1-0.9.
|
|
25
27
|
recaptchaDataSValue: The one-time token from the widget's "data-s"
|
|
26
28
|
parameter, if present on the page.
|
|
27
29
|
userAgent: The User-Agent string of the browser that should be
|
|
@@ -35,11 +37,21 @@ class RecaptchaV2EnterpriseRequest(BaseRequestWithProxy):
|
|
|
35
37
|
enterprisePayload: Optional[str] = Field(default=None, description='Additional parameters passed to the reCAPTCHA Enterprise widget, such as a custom "s" value used by some implementations.')
|
|
36
38
|
apiDomain: Optional[str] = Field(default=None, description='The domain to load the reCAPTCHA API from, used when the challenge is served from a domain other than the default Google domain.')
|
|
37
39
|
pageAction: Optional[str] = Field(default=None, description='The action name configured for the reCAPTCHA Enterprise challenge on the target website.')
|
|
40
|
+
minScore: Optional[float] = Field(default=None, description='Minimum acceptable score for the token, in the range 0.1-0.9.')
|
|
38
41
|
recaptchaDataSValue: Optional[str] = Field(default=None, description='The one-time token from the widget\'s "data-s" parameter, if present on the page.')
|
|
39
42
|
userAgent: Optional[str] = Field(default=None, description='The User-Agent string of the browser that should be emulated while solving the challenge.')
|
|
40
43
|
cookies: Optional[str] = Field(default=None, description='Cookies to be sent along with the request when solving the challenge.')
|
|
41
44
|
|
|
42
|
-
|
|
45
|
+
@field_validator('minScore')
|
|
46
|
+
@classmethod
|
|
47
|
+
def validate_min_score(cls, value):
|
|
48
|
+
if value is not None:
|
|
49
|
+
if not 0.1 <= value <= 0.9:
|
|
50
|
+
raise ValueError(f'Minimum score value should be found in interval 0.1 - 0.9, ' \
|
|
51
|
+
f'current "{value}".')
|
|
52
|
+
return value
|
|
53
|
+
|
|
54
|
+
def getTaskDict(self) -> Dict[str, Union[str, int, float]]:
|
|
43
55
|
task = {}
|
|
44
56
|
task['type'] = self.type
|
|
45
57
|
task['websiteURL'] = self.websiteUrl
|
|
@@ -56,6 +68,8 @@ class RecaptchaV2EnterpriseRequest(BaseRequestWithProxy):
|
|
|
56
68
|
task['apiDomain'] = self.apiDomain
|
|
57
69
|
if self.pageAction is not None:
|
|
58
70
|
task['pageAction'] = self.pageAction
|
|
71
|
+
if self.minScore is not None:
|
|
72
|
+
task['minScore'] = self.minScore
|
|
59
73
|
if self.recaptchaDataSValue is not None:
|
|
60
74
|
task['recaptchaDataSValue'] = self.recaptchaDataSValue
|
|
61
75
|
if self.userAgent is not None:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
4.3.4
|
{capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4/capmonstercloudclient.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: capmonstercloudclient
|
|
3
|
-
Version: 4.3.
|
|
3
|
+
Version: 4.3.4
|
|
4
4
|
Summary: Official CapMonster Cloud Python SDK: captcha solver & captcha bypass for reCAPTCHA, Cloudflare Turnstile, DataDome and GeeTest. A 2captcha and capsolver alternative.
|
|
5
5
|
Home-page: https://github.com/CapMonsterCloud/capmonster-python-captcha-solver
|
|
6
6
|
Author: CapMonster Cloud
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
4.3.3
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/__init__.py
RENAMED
|
File without changes
|
{capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/captchaResult.py
RENAMED
|
File without changes
|
{capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/clientOptions.py
RENAMED
|
File without changes
|
{capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/exceptions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capmonstercloudclient-4.3.3 → capmonstercloudclient-4.3.4}/capmonstercloud_client/requests/enums.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|