Registry / http-networking / capsolver

capsolver

JSON →
library1.0.7pypypi✓ verified 81d ago

Official Python SDK for Capsolver, a service for solving CAPTCHAs (ReCaptcha, hCaptcha, Geetest, etc.) automatically. Current version 1.0.7, requires Python >=3.6.8, maintained by Capsolver team.

pip install capsolver
INSTALL
IMPORT
SIG · CAPSOLVER
C
capsolver
http-networkingpythonv1.0.7
Install
2.2s avg
Import
Disk
19MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.0.7 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 21MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.2s · import 0.000s · 22MB
19MB installed
● package 19MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Capsolver
from capsolver import Capsolver
from capsolver import CapSolver

Instantiate CapSolver with your API key and solve a ReCaptcha v2 (proxyless).

from capsolver import CapSolver import os api_key = os.environ.get('CAPSOLVER_API_KEY', 'YOUR_API_KEY') solver = CapSolver(api_key=api_key) # Solve ReCaptcha v2 result = solver.solve( type="ReCaptchaV2TaskProxyless", websiteURL="https://example.com", websiteKey="6Lc..." ) print(result)
Debug
Known issues
gotchaAPI keys are required for all requests. The library does not validate the key until the first API call, so catch exceptions.
fix
Always handle capsolver.exceptions.CapSolverError in your code.
affects: all
deprecatedThe 'capsolver.capsolver' module is deprecated. Use the top-level 'capsolver' package directly.
fix
Change 'from capsolver.capsolver import CapSolver' to 'from capsolver import CapSolver'.
affects: <=1.0.6
gotchaTask names are case-sensitive and version-specific. Mistyping a task type (e.g., 'ReCaptchaV2Task' vs 'ReCaptchaV2TaskProxyless') will raise an API error.
fix
Refer to Capsolver API docs for exact task type strings.
affects: all
breakingIn v1.0.0, the constructor changed from 'capsolver(api_key)' to 'CapSolver(api_key=api_key)', with keyword argument enforcement.
fix
Use 'CapSolver(api_key=...)' with explicit keyword.
affects: <1.0.0
Upgrade
Version history
1.0.7latest on PyPI · released Jul 20, 2023
Audit
Dependencies
requestsrequiredHTTP client for API calls
Agent activity
41 hits · last 30 days
node
38
OpenAI (training)
1
Resources
capsolver — pip install capsolver · libregistry