File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33from .core .base import CaptchaParams
44from .core .enum import AntiAwsWafTaskTypeEnm
5- from .core .aio_captcha_instrument import AIOCaptchaInstrument
6- from .core .sio_captcha_instrument import SIOCaptchaInstrument
75
86
97class AwsWaf (CaptchaParams ):
@@ -94,31 +92,3 @@ def __init__(
9492 f"""Invalid `captcha_type` parameter set for `{ self .__class__ .__name__ } `,
9593 available - { AntiAwsWafTaskTypeEnm .list_values ()} """
9694 )
97-
98- def captcha_handler (self ) -> dict :
99- """
100- Sync solving method
101-
102- Returns:
103- Dict with full service response
104-
105- Notes:
106- Check class docstring for more info
107- """
108- self .create_task_payload .task = {** self .task_params }
109- self ._captcha_handling_instrument = SIOCaptchaInstrument (captcha_params = self )
110- return self ._captcha_handling_instrument .processing_captcha ()
111-
112- async def aio_captcha_handler (self ) -> dict :
113- """
114- Async method for captcha solving
115-
116- Returns:
117- Dict with full service response
118-
119- Notes:
120- Check class docstring for more info
121- """
122- self .create_task_payload .task = {** self .task_params }
123- self ._captcha_handling_instrument = AIOCaptchaInstrument (captcha_params = self )
124- return await self ._captcha_handling_instrument ._aio_processing_captcha ()
You can’t perform that action at this time.
0 commit comments