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
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"))
*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"))
*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"))
For more details
https://pypi.org/project/captchaai-python/
Top comments (0)