GeeTest¶
To import this module:
from python3_capsolver.gee_test import GeeTest
- class python3_capsolver.gee_test.GeeTest(api_key: str, captcha_type: CaptchaTypeEnm | str = CaptchaTypeEnm.GeeTestTaskProxyLess, **kwargs)¶
The class is used to work with Capsolver GeeTestTaskProxyLess methods.
- Parameters:
api_key (str) – Capsolver API key
captcha_type (CaptchaTypeEnm | str) – Captcha type name, like
GeeTestTaskProxyLess
and etc.kwargs –
additional params for client, like captcha waiting time available keys:
sleep_time: int - captcha solution waintig time in sec
- request_url: str - API address for sending requests,
else official will be used
Examples
>>> from python3_capsolver.core.enum import CaptchaTypeEnm >>> from python3_capsolver.gee_test import GeeTest
>>> GeeTest(api_key="CAP-XXXXX", ... captcha_type=CaptchaTypeEnm.GeeTestTaskProxyLess, ... ).captcha_handler(task_payload={ ... "websiteURL": "https://www.geetest.com/en/demo", ... "gt": "022397c99c9f646f6477822485f30404", ... "challenge": "12345678abc90123d45678ef90123a456b", ... }) { "errorId":0, "errorCode":"None", "errorDescription":"None", "taskId":"db0a3153-621d-4f5e-8554-a1c032597ee7", "status":"ready", "solution":{ "challenge": "xxx", "validate": "xxx" } }
>>> import asyncio >>> from python3_capsolver.core.enum import CaptchaTypeEnm >>> from python3_capsolver.gee_test import GeeTest
>>> asyncio.run(GeeTest(api_key="CAP-XXXXX", ... captcha_type=CaptchaTypeEnm.GeeTestTaskProxyLess, ... ).aio_captcha_handler(task_payload={ ... "websiteURL": "https://www.geetest.com/en/demo", ... "gt": "022397c99c9f646f6477822485f30404", ... "challenge": "12345678abc90123d45678ef90123a456b", ... })) { "errorId":0, "errorCode":"None", "errorDescription":"None", "taskId":"db0a3153-621d-4f5e-8554-a1c032597ee7", "status":"ready", "solution":{ "challenge": "xxx", "validate": "xxx" } }
- async aio_captcha_handler(task_payload: Dict) Dict[str, Any] ¶
Asynchronous method for captcha solving
- Parameters:
task_payload (Dict) – Some additional parameters that will be used in creating the task and will be passed to the payload under
task
key. LikewebsiteURL
,image
,proxyPassword
,websiteKey
and etc. more info in service docs- Returns:
Dict with full server response
- Return type:
Dict[str, Any]
Notes
Check class docstirng for more info
- captcha_handler(task_payload: Dict) Dict[str, Any] ¶
Synchronous method for captcha solving
- Parameters:
task_payload (Dict) – Some additional parameters that will be used in creating the task and will be passed to the payload under
task
key. LikewebsiteURL
,image
,proxyPassword
,websiteKey
and etc. more info in service docs- Returns:
Dict with full server response
- Return type:
Dict[str, Any]
Notes
Check class docstirng for more info