GeeTest

To import this module:

from python3_capsolver.gee_test import GeeTest
class python3_capsolver.gee_test.GeeTest(captcha_type: GeeTestCaptchaTypeEnm | str, websiteURL: str, gt: str, challenge: str, *args, **kwargs)

The class is used to work with Capsolver GeeTestTask methods.

Parameters:
  • api_key – Capsolver API key

  • captcha_type (GeeTestCaptchaTypeEnm | str) – Captcha type name, like GeeTestTaskProxyLess and etc.

  • websiteURL (str) – Address of a webpage with Geetest

  • gt (str) – The domain public key, rarely updated

  • challenge (str) – If you need to solve Geetest V3 you must use this parameter, don’t need if you need to solve GeetestV4

Examples

>>> GeeTest(api_key="CAI-1324...",
...         captcha_type=GeeTestCaptchaTypeEnm.GeeTestTaskProxyLess,
...         websiteURL="https://www.geetest.com/en/demo",
...         gt="022397c99c9f646f6477822485f30404",
...         challenge='12345678abc90123d45678ef90123a456b'
...        ).captcha_handler()
CaptchaResponseSer(errorId=0,
                   errorCode=None,
                   errorDescription=None,
                   taskId='73bdcd28-6c77-4414-8....',
                   status=<ResponseStatusEnm.Ready: 'ready'>,
                   solution={'gRecaptchaResponse': '44795sds...'}
                  )
>>> GeeTest(api_key="CAI-1324...",
...         captcha_type=GeeTestCaptchaTypeEnm.GeeTestTask,
...         websiteURL="https://www.geetest.com/en/demo",
...         gt="022397c99c9f646f6477822485f30404",
...         challenge='12345678abc90123d45678ef90123a456b'
...         proxy="socks5:192.191.100.10:4780:user:pwd"
...        ).captcha_handler()
CaptchaResponseSer(errorId=0,
                   errorCode=None,
                   errorDescription=None,
                   taskId='73bdcd28-6c77-4414-8....',
                   status=<ResponseStatusEnm.Ready: 'ready'>,
                   solution={'gRecaptchaResponse': '44795sds...'}
                  )
>>> await GeeTest(api_key="CAI-1324...",
...         captcha_type="GeetestTaskProxyless",
...         websiteURL="https://www.geetest.com/en/demo",
...         gt="022397c99c9f646f6477822485f30404",
...         challenge='12345678abc90123d45678ef90123a456b'
...        ).aio_captcha_handler()
CaptchaResponseSer(errorId=0,
                   errorCode=None,
                   errorDescription=None,
                   taskId='73bdcd28-6c77-4414-8....',
                   status=<ResponseStatusEnm.Ready: 'ready'>,
                   solution={'gRecaptchaResponse': '44795sds...'}
                  )
Returns:

CaptchaResponseSer model with full server response

captcha_handler() CaptchaResponseSer

Sync solving method

Returns:

CaptchaResponseSer model with full service response

Return type:

CaptchaResponseSer

Notes

Check class docstring for more info

async aio_captcha_handler() CaptchaResponseSer

Async solving method

Returns:

CaptchaResponseSer model with full service response

Return type:

CaptchaResponseSer

Notes

Check class docstring for more info