capsolver python libary
Slowing down. Last release over 3 years ago, little activity since. Fine for existing code; think twice for a new project.
Consider instead2captcha-python
capsolver python libary
Slowing down. Last release over 3 years ago, little activity since. Fine for existing code; think twice for a new project.
Consider instead2captcha-python
pip install capsolverCapsolver official python library
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
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)
Use instead of capsolver: tools that do the same job, closest first.
Compare with 2captcha-python →Compare with 2captcha-python-async →Compare with anticaptchaofficial →Compare all 4 →
Python module for easy integration with 2Captcha API
OpenSSF Scorecard
not evaluated
Python module for easy integration with 2Captcha API
Official anti-captcha.com library
Official Python client for NoneCap, the hCaptcha solver API.