result = solver.turnstile(
...: sitekey='0x4AAAAAAAAjq6WYeRDKmebM',
...: url='https://recorder.maricopa.gov/recdocdata/'
...: )
---------------------------------------------------------------------------
ApiException Traceback (most recent call last)
Cell In[3], line 1
----> 1 result = solver.turnstile(
2 sitekey='0x4AAAAAAAAjq6WYeRDKmebM',
3 url='https://recorder.maricopa.gov/recdocdata/'
4 )
File ~/.local/lib/python3.8/site-packages/twocaptcha/solver.py:443, in TwoCaptcha.turnstile(self, sitekey, url, **kwargs)
429 def turnstile(self, sitekey, url, **kwargs):
430 '''
431 Wrapper for solving Cloudflare Turnstile
432
(...)
440
441 '''
--> 443 result = self.solve(sitekey=sitekey,
444 url=url,
445 method='turnstile',
446 **kwargs)
447 return result
File ~/.local/lib/python3.8/site-packages/twocaptcha/solver.py:492, in TwoCaptcha.solve(self, timeout, polling_interval, **kwargs)
475 def solve(self, timeout=0, polling_interval=0, **kwargs):
476 '''
477 sends captcha, receives result
478
(...)
489 result : string
490 '''
--> 492 id_ = self.send(**kwargs)
493 result = {'captchaId': id_}
495 if self.callback is None:
File ~/.local/lib/python3.8/site-packages/twocaptcha/solver.py:546, in TwoCaptcha.send(self, **kwargs)
542 params = self.rename_params(params)
544 params, files = self.check_hint_img(params)
--> 546 response = self.api_client.in_(files=files, **params)
548 if not response.startswith('OK|'):
549 raise ApiException(f'cannot recognize response {response}')
File ~/.local/lib/python3.8/site-packages/twocaptcha/api.py:76, in ApiClient.in_(self, files, **kwargs)
73 resp = resp.content.decode('utf-8')
75 if 'ERROR' in resp:
---> 76 raise ApiException(resp)
78 return resp
ApiException: ERROR_BAD_PARAMETERS
Any help will be appreciated.