Skip to main content

capmonster.cloud library for Python

Project description

Capmonster.cloud for Python

Python Package Tests PyPI - Wheel PyPI - Python Version GitHub last commit GitHub release (latest by date) PyPI - Downloads GitHub code size in bytes GitHub Repo stars

Capmonster.cloud package for Python3

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

At least 2x cheaper, up to 30x faster than manual recognition services.

Installation

pip install capmonster_python

Supported captcha types

  • Image to text
  • Recaptcha v2
  • Recaptcha v3
  • Fun Captcha
  • HCaptcha
  • GeeTest

Usage examples

ImageToText

from capmonster_python import ImageToTextTask

capmonster = ImageToTextTask("API_KEY")
task_id = capmonster.create_task(image_path="img.png")
result = capmonster.join_task_result(task_id)
print(result.get("text"))

Recaptcha v2

from capmonster_python import RecaptchaV2Task

capmonster = RecaptchaV2Task("API_KEY")
task_id = capmonster.create_task("website_url", "website_key")
result = capmonster.join_task_result(task_id)
print(result.get("gRecaptchaResponse"))

GeeTest

from capmonster_python import GeeTestTask

capmonster = GeeTestTask("API_KEY")
task_id = capmonster.create_task("website_url", "gt", "challenge")
result = capmonster.join_task_result(task_id)
print(result.get("validate"))
print(result.get("seccode"))

For other examples and api documentation please visit wiki

Migration from 1.3.2 to 2.x

  • v2.x is created for automation and stability.

  • If you want to use old version: (no longer supported)

    pip install capmonster-python==1.3.2
    
  • If you want to use new version 2.x:

    • All methods, classes and fields are changed for maximum optimization and continuous automation. Check out wiki for usage examples and package api.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

capmonster_python-2.1.tar.gz (27.6 kB view hashes)

Uploaded Source

Built Distribution

capmonster_python-2.1-py3-none-any.whl (9.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page