Skip to content

alperensert/capsolver_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CapSolver.com package 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

CapSolver.com package for Python3

Register now from here.

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

Installation

pip install capsolver_python

Supported captcha types

  • Image to Text
  • Recaptcha V2
  • Recaptcha V2 Enterprise
  • Recaptcha V3
  • FunCaptcha
  • HCaptcha
  • GeeTest
  • AntiAkamaiBMP
  • HCaptcha Classification
  • DataDome Slider
  • FunCaptcha Classification

Usage examples

ImageToText

from capsolver_python import ImageToTextTask

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

Recaptcha v2

from capsolver_python import RecaptchaV2Task

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

Recaptcha v2 enterprise

from capsolver_python import RecaptchaV2EnterpriseTask

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

GeeTest

from capsolver_python import GeeTestTask

capsolver = GeeTestTask("API_KEY")
task_id = capsolver.create_task("website_url", "gt", "challenge")
result= capsolver.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