CyberSiARA

To import this module:

from python3_capsolver.cyber_si_ara import CyberSiARA
class python3_capsolver.cyber_si_ara.CyberSiARA(captcha_type: AntiCyberSiAraTaskTypeEnm | str, websiteURL: str, SlideMasterUrlId: str, UserAgent: str, *args, **kwargs)

The class is used to work with Capsolver CyberSiARA methods.

Parameters:
  • api_key – Capsolver API key

  • captcha_type (AntiCyberSiAraTaskTypeEnm | str) – Captcha type name, like AntiCyberSiAraTask and etc.

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

  • SlideMasterUrlId (str) – You can get MasterUrlId param form api/CyberSiara/GetCyberSiara endpoint request

  • UserAgent (str) – Browser userAgent, you need submit your userAgent

Examples

>>> CyberSiARA(api_key="CAI-BA9XXXXXXXXXXXXX2702E010",
...          captcha_type='AntiCyberSiAraTaskProxyLess',
...          websiteURL="https://www.cybersiara.com/book-a-demo",
...          UserAgent="Mozilla/5.0 ....",
...          SlideMasterUrlId="OXR2LVNvCuXykkZbB8KZIfh162sNT8S2",
...         ).captcha_handler()
CaptchaResponseSer(errorId=0,
                   errorCode=None,
                   errorDescription=None,
                   taskId='73bdcd28-6c77-4414-8....',
                   status=<ResponseStatusEnm.Ready: 'ready'>,
                   solution={'token': '44795sds...'}
                  )
>>> CyberSiARA(api_key="CAI-BA9XXXXXXXXXXXXX2702E010",
...          captcha_type=AntiCyberSiAraTaskTypeEnm.AntiCyberSiAraTaskProxyLess,
...          websiteURL="https://www.cybersiara.com/book-a-demo",
...          UserAgent="Mozilla/5.0 ....",
...          SlideMasterUrlId="OXR2LVNvCuXykkZbB8KZIfh162sNT8S2",
...         ).captcha_handler()
CaptchaResponseSer(errorId=0,
                   errorCode=None,
                   errorDescription=None,
                   taskId='73bdcd28-6c77-4414-8....',
                   status=<ResponseStatusEnm.Ready: 'ready'>,
                   solution={'token': '44795sds...'}
                  )
>>> CyberSiARA(api_key="CAI-BA9XXXXXXXXXXXXX2702E010",
...          captcha_type=AntiCyberSiAraTaskTypeEnm.AntiCyberSiAraTask,
...          websiteURL="https://www.cybersiara.com/book-a-demo",
...          UserAgent="Mozilla/5.0 ....",
...          SlideMasterUrlId="OXR2LVNvCuXykkZbB8KZIfh162sNT8S2",
...          proxy="socks5:192.191.100.10:4780:user:pwd",
...         ).captcha_handler()
CaptchaResponseSer(errorId=0,
                   errorCode=None,
                   errorDescription=None,
                   taskId="87f149f4-1c....",
                   status=<ResponseStatusEnm.Ready: 'ready'>,
                   solution={'token': '44795sds...'}
                  )
>>> await CyberSiARA(api_key="CAI-BA9650D2B9C2786B21120D512702E010",
...          captcha_type=AntiCyberSiAraTaskTypeEnm.AntiCyberSiAraTaskProxyLess,
...          websiteURL="https://www.cybersiara.com/book-a-demo",
...          UserAgent="Mozilla/5.0 ....",
...          SlideMasterUrlId="OXR2LVNvCuXykkZbB8KZIfh162sNT8S2",
...         ).aio_captcha_handler()
CaptchaResponseSer(errorId=0,
                   errorCode=None,
                   errorDescription=None,
                   taskId='73bdcd28-6c77-4414-8....',
                   status=<ResponseStatusEnm.Ready: 'ready'>,
                   solution={'token': '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 method for captcha solving

Returns:

CaptchaResponseSer model with full service response

Return type:

CaptchaResponseSer

Notes

Check class docstring for more info