Skip to main content

EzCaptcha python sdk

Project description

English | 中文版

English

EzCaptcha SDK for python

Install

pip install ezcaptcha

Usage

Sample:

from ezcaptcha import EzCaptcha

# Recaptcha
ez = EzCaptcha(client_key="yourapiKey")
token = ez.solve({
    "websiteURL": "https://www.google.com/recaptcha/api2/demo",
    "websiteKey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-",
    "type": ez.AllTaskType.RecaptchaV2TaskProxyless,  # or use str "RecaptchaV2TaskProxyless"
    "isInvisible": False
}, print_log=True)
print(token)

# Funcaptcha
token = ez.solve({
  "websiteURL": "https://iframe.arkoselabs.com",
  "websiteKey": "B7D8911C-5CC8-A9A3-35B0-554ACEE604DA",
  "type": ez.AllTaskType.FuncaptchaTaskProxyless,  # or use str "FuncaptchaTaskProxyless"
}, print_log=True)

Specify the language of log output and prompts, support "en" and "zh", default "en"

from ezcaptcha import EzCaptcha

ez = EzCaptcha(client_key="yourapiKey", lang="zh")
...

Enable log printing function

from ezcaptcha import EzCaptcha

ez = EzCaptcha(client_key="yourapiKey")
token = ez.solve({
    "websiteURL": "https://www.google.com/recaptcha/api2/demo",
    "websiteKey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-",
    "type": "RecaptchaV2TaskProxyless",
    "isInvisible": False,
}, print_log=True)

Specific waiting_interval(default 3s) and waiting_timeout(default 120s)

from ezcaptcha import EzCaptcha

ez = EzCaptcha(client_key="yourapiKey")
token = ez.solve({
    "websiteURL": "https://www.google.com/recaptcha/api2/demo",
    "websiteKey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-",
    "type": "RecaptchaV2TaskProxyless",
    "isInvisible": False,
}, waiting_interval=1, waiting_timeout=90, print_log=True)

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

ezcaptcha-1.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file ezcaptcha-1.1-py3-none-any.whl.

File metadata

  • Download URL: ezcaptcha-1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.11

File hashes

Hashes for ezcaptcha-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ce07371ab495258a7b1d4190d3cfe9315946c4ac90ab6a15dc3c964e9cdac1e7
MD5 bcfd03d3c7ed34f5a78ac4461ed3f0ee
BLAKE2b-256 13dfc1d73bfc827beb2e4c615c0817ebb7187d21b7a1215f5c76c8c8b6d1d4a4

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