Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Python 3 package for easy integration with the API of capsolver captcha solving service to solver recaptcha, geetest and solve any other captchas. Capsolver.

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.rst
Notifications You must be signed in to change notification settings

capsolver/capsolver-python

Open more actions menu

Repository files navigation

Capsolver

Capsolver official python library

Supported CAPTCHA types:

  • Geetest
  • ReCaptchaV2
  • ReCaptchav3
  • MtCaptcha
  • Cloudflare
  • Amazon captcha(AWS WAF)

Installation

You don't need this source code unless you want to modify the package. If you just want to use the package, just run:

pip3 install --upgrade capsolver

Install from source with:

python setup.py install

Usage

export CAPSOLVER_API_KEY='...'

Or set capsolver.api_key to its value:

from pathlib import Path
import os
import base64
import capsolver

# tokenTask
print("api host",capsolver.api_base)
print("api key",capsolver.api_key)
# capsolver.api_key = "..."
solution = capsolver.solve({
        "type":"ReCaptchaV2TaskProxyLess",
        "websiteKey":"6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-",
        "websiteURL":"https://www.google.com/recaptcha/api2/demo",
    })

print(solution)

# RecognitionTask
img_path = os.path.join(Path(__file__).resolve().parent,"queue-it.jpg")
with open(img_path,'rb') as f:
    solution = capsolver.solve({
        "type":"ImageToTextTask",
        "module":"queueit",
        "body":base64.b64encode(f.read()).decode("utf8")
    })
    print(solution)

# get current balance
balance = capsolver.balance()
# print the current balance
print(balance)

About

Python 3 package for easy integration with the API of capsolver captcha solving service to solver recaptcha, geetest and solve any other captchas. Capsolver.

Topics

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.rst

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.