Datadome Slider

To import this module:

from python3_capsolver.datadome_slider import DatadomeSlider
class python3_capsolver.datadome_slider.DatadomeSlider(websiteURL: str, captchaUrl: str, userAgent: str, captcha_type: DatadomeSliderTypeEnm | str = DatadomeSliderTypeEnm.DatadomeSliderTask, *args, **kwargs)

The class is used to work with Capsolver DatadomeSlider method.

Parameters:
  • api_key – Capsolver API key

  • websiteURL (str) – Address of the webpage

  • captchaUrl (str) – Captcha Url where is the captcha

  • proxy – Proxy data

  • userAgent (str) – Browser’s User-Agent which is used in emulation

Examples

>>> DatadomeSlider(api_key="CAI-1324...",
...         captcha_type=DatadomeSliderTypeEnm.DatadomeSliderTask,
...         websiteURL="https://www.some-url.com/",
...         captchaUrl="https://www.some-url.com/to-page-with-captcha",
...         proxy="socks5:158.120.100.23:334:user:pass",
...         userAgent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36",
...        ).captcha_handler()
CaptchaResponseSer(errorId=0,
                   errorCode=None,
                   errorDescription=None,
                   taskId='73bdcd28-6c77-4414-8....',
                   status=<ResponseStatusEnm.Ready: 'ready'>,
                   solution={'gRecaptchaResponse': '44795sds...'}
                  )
>>> await DatadomeSlider(api_key="CAI-1324...",
...         captcha_type="DatadomeSliderTask",
...         websiteURL="https://www.some-url.com/",
...         captchaUrl="https://www.some-url.com/to-page-with-captcha",
...         proxy="socks5:158.120.100.23:334:user:pass",
...         userAgent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36",
...        ).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 method for captcha solving

Returns:

CaptchaResponseSer model with full service response

Return type:

CaptchaResponseSer

Notes

Check class docstring for more info

async aio_captcha_handler(**additional_params) CaptchaResponseSer

Async method for captcha solving

Returns:

CaptchaResponseSer model with full service response

Return type:

CaptchaResponseSer

Notes

Check class docstring for more info