Skip to content

Commit

Permalink
6.0.1 - CutCaptcha added
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiDrang committed Dec 8, 2023
1 parent c621911 commit 6526ace
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 14 deletions.
Binary file modified docs/_static/RuCaptchaMedium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Check our other projects here - `RedPandaDev group <https://red-panda-dev.xyz/bl
modules/turnstile/example.rst
modules/image/example.rst
modules/audio/example.rst
modules/cut-captcha/example.rst
modules/control/example.rst

.. toctree::
Expand Down
12 changes: 12 additions & 0 deletions docs/modules/cut-captcha/example.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
CutCaptcha
==========

To import this module:

.. code-block:: python
from python_rucaptcha.cutcaptcha import CutCaptcha
.. autoclass:: python_rucaptcha.cutcaptcha.CutCaptcha
:members:
4 changes: 4 additions & 0 deletions docs/modules/enum/info.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,7 @@ To import this module:
.. autoclass:: python_rucaptcha.core.enums.AmazonWAFCaptchaEnm
:members:
:undoc-members:

.. autoclass:: python_rucaptcha.core.enums.CutCaptchaEnm
:members:
:undoc-members:
Binary file modified files/RuCaptchaHigh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 10 additions & 7 deletions files/drawing.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/python_rucaptcha/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "6.0"
__version__ = "6.0.1"
8 changes: 4 additions & 4 deletions src/python_rucaptcha/cutcaptcha.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(
**kwargs,
):
"""
The class is used to work with HCaptcha.
The class is used to work with CutCaptcha.
Args:
rucaptcha_key: User API key
Expand All @@ -28,7 +28,7 @@ def __init__(
Examples:
>>> CutCaptcha(rucaptcha_key="aa9011f31111181111168611f1151122",
... websiteURL="https://rucaptcha.com/demo/hcaptcha",
... websiteURL="https://example.cc/foo/bar.html",
... miseryKey="a1488b66da00bf332a1488993a5443c79047e752",
... apiKey="SAb83IIB",
... method=CutCaptchaEnm.CutCaptchaTaskProxyless
Expand All @@ -51,7 +51,7 @@ def __init__(
}
>>> await CutCaptcha(rucaptcha_key="aa9011f31111181111168611f1151122",
... websiteURL="https://rucaptcha.com/demo/hcaptcha",
... websiteURL="https://example.cc/foo/bar.html",
... miseryKey="a1488b66da00bf332a1488993a5443c79047e752",
... apiKey="SAb83IIB",
... method=CutCaptchaEnm.CutCaptchaTaskProxyless
Expand All @@ -77,7 +77,7 @@ def __init__(
Dict with full server response
Notes:
https://rucaptcha.com/api-docs/hcaptcha
https://2captcha.com/api-docs/cutcaptcha
"""
super().__init__(method=method, *args, **kwargs)

Expand Down
4 changes: 2 additions & 2 deletions tests/test_cutcaptcha.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
from python_rucaptcha.core.serializer import GetTaskResultResponseSer


class TestHCaptcha(BaseTest):
class TestCutCaptcha(BaseTest):
miseryKey = "a1488b66da00bf332a1488993a5443c79047e752"
pageurl = "https://rucaptcha.com/demo/hcaptcha"
pageurl = "https://example.cc/foo/bar.html"
apiKey = "SAb83IIB"

kwargs_params = {
Expand Down

0 comments on commit 6526ace

Please sign in to comment.