Skip to main content

capmonster.cloud library for Python

Project description

Capmonster.cloud for Python

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 v2 Enterprise
  • Recaptcha v3
  • Fun Captcha
  • HCaptcha
  • GeeTest
  • Turnstile Task

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"))

Recaptcha v2 enterprise

from capmonster_python import RecaptchaV2EnterpriseTask

capmonster = RecaptchaV2EnterpriseTask("API_KEY")
task_id = capmonster.create_task("website_url", "website_key", {"s": "payload value"}, "api_domain")
result = capmonster.join_task_result(task_id)
print(result.get("gRecaptchaResponse"))

GeeTest

from capmonster_python import GeeTestTask

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

For other examples and api documentation please visit wiki

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.4.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

capmonster_python-2.4-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file capmonster_python-2.4.tar.gz.

File metadata

  • Download URL: capmonster_python-2.4.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for capmonster_python-2.4.tar.gz
Algorithm Hash digest
SHA256 92f01c7430d69624a506affbdf5b0d2fd8b83f9ed2f3103b3e664174ebb9ff09
MD5 9a26e01e33063a0082c98dcc2c25d6f3
BLAKE2b-256 aa867d610843f28e6640c5dd33dd4ce8a993217bef04af8a28e25a1615ba5015

See more details on using hashes here.

File details

Details for the file capmonster_python-2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for capmonster_python-2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4af3dbf451aaaa49f42d7cd3c8f31447b12bf73a491f179a0a4147395b0e6e2f
MD5 a74d59f902ccb71ce47f57b922da002b
BLAKE2b-256 1fe03fbc976ad4afadf2e02879c4452d3ffd87b9343fd5de1a005480caedeac1

See more details on using hashes here.

Supported by

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