capmonster-python 2.6.2__py3-none-any.whl → 3.0.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.
- capmonster_python/__init__.py +1 -0
- capmonster_python/turnstile.py +3 -2
- {capmonster_python-2.6.2.dist-info → capmonster_python-3.0.0.dist-info}/METADATA +1 -1
- {capmonster_python-2.6.2.dist-info → capmonster_python-3.0.0.dist-info}/RECORD +7 -7
- {capmonster_python-2.6.2.dist-info → capmonster_python-3.0.0.dist-info}/WHEEL +1 -1
- {capmonster_python-2.6.2.dist-info → capmonster_python-3.0.0.dist-info}/LICENSE +0 -0
- {capmonster_python-2.6.2.dist-info → capmonster_python-3.0.0.dist-info}/top_level.txt +0 -0
capmonster_python/__init__.py
CHANGED
capmonster_python/turnstile.py
CHANGED
|
@@ -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,4 +1,4 @@
|
|
|
1
|
-
capmonster_python/__init__.py,sha256=
|
|
1
|
+
capmonster_python/__init__.py,sha256=9rQthHrlBItDfV3mh0Ex6GgWAvQyhq90PH0csKfoseY,452
|
|
2
2
|
capmonster_python/capmonster.py,sha256=0gJw9iLl8XQvqk1eOgv9oOZ_929VS4r7dIv2ixbF9S0,9026
|
|
3
3
|
capmonster_python/compleximage.py,sha256=NjsJBR7AlNeo9-1KMxUMCL4PkJm_nL_g8JiFgIk3Xgs,2048
|
|
4
4
|
capmonster_python/datadome.py,sha256=5GQbIiiHN2jYF5il3z7p7_mkac1X7ejx8jkK5-T4RbI,615
|
|
@@ -9,10 +9,10 @@ capmonster_python/image_to_text.py,sha256=V268ZeaVfTQHpfHkq5trxMQeLxZskv4r5_3xYj
|
|
|
9
9
|
capmonster_python/recaptcha_v2.py,sha256=6fm1Lu3vHMZioHuW475nJ5_nMElgpOKru67x_lPC12c,1035
|
|
10
10
|
capmonster_python/recaptcha_v2_enterprise.py,sha256=Ms8sN4FaA9M16PNkGB5tTP0SBW9H-WQaoh157ewtYG8,1191
|
|
11
11
|
capmonster_python/recaptcha_v3.py,sha256=Yuvvc03FMALSki0WqJqAXGmNVpZqmtqDmhsY7LEP0fE,866
|
|
12
|
-
capmonster_python/turnstile.py,sha256=
|
|
12
|
+
capmonster_python/turnstile.py,sha256=nS_wny8y5KahEa28NlCaOS8cC_WNffL2xWyZSC08pyw,782
|
|
13
13
|
capmonster_python/utils.py,sha256=kcHEYw-JqDXHPI8baBdRjdV1UKVo8oOriKhqfDgXxYI,1382
|
|
14
|
-
capmonster_python-
|
|
15
|
-
capmonster_python-
|
|
16
|
-
capmonster_python-
|
|
17
|
-
capmonster_python-
|
|
18
|
-
capmonster_python-
|
|
14
|
+
capmonster_python-3.0.0.dist-info/LICENSE,sha256=dsx0VlJZP5DI64ranPoTdQuDmNvrABI9QNm-PctMmM4,1055
|
|
15
|
+
capmonster_python-3.0.0.dist-info/METADATA,sha256=gx34wC2ugSmPedd8QobyPTdfuB_fBmer-iZZQyGUYJo,4070
|
|
16
|
+
capmonster_python-3.0.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
17
|
+
capmonster_python-3.0.0.dist-info/top_level.txt,sha256=QW5VEUvOJfzDxYpD7fSJtGfUxhM3m7U7LFcZ-wRpU70,18
|
|
18
|
+
capmonster_python-3.0.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|