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/

AWS Q Developer image

Your AI Code Assistant

Generate and update README files, create data-flow diagrams, and keep your project fully documented. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay