DEV Community

Tony Fx20
Tony Fx20

Posted on

Captchaai-python 1.0

CaptchaAI.IO package for Python3

Register now from here.

If you have any problem with usage, read the documentation or create an issue

Installation

pip install captchaai_python

Enter fullscreen mode Exit fullscreen mode

Supported captcha types
Image to Text
Recaptcha V2
Recaptcha V3

Usage examples

*ImageToText
*

from captchaai_python import ImageToTextTask

captchaaiio = ImageToTextTask("API_KEY")
task_id = captchaaiio.create_task(image_path="img.png")
result = captchaaiio.join_task_result(task_id)
print(result.get("text"))
Enter fullscreen mode Exit fullscreen mode

*Recaptcha v2
*


from captchaai_python import RecaptchaV2Task


captchaaiio = RecaptchaV2Task("API_KEY")
task_id = captchaaiio.create_task("website_url", "website_key")
result = captchaaiio.join_task_result(task_id)
print(result.get("gRecaptchaResponse"))
Enter fullscreen mode Exit fullscreen mode

*Recaptcha v2 enterprise
*


from captchaai_python import RecaptchaV2EnterpriseTask
captchaaiio = RecaptchaV2EnterpriseTask("API_KEY")
task_id = captchaaiio.create_task("website_url", "website_key", {"s": "payload value"}, "api_domain")
result = captchaaiio.join_task_result(task_id)
print(result.get("gRecaptchaResponse"))
Enter fullscreen mode Exit fullscreen mode

For more details
https://pypi.org/project/captchaai-python/

Top comments (0)