'How to put the value of hcaptcha result in hidden textarea ...?

> I got the result from 2captcha API service it have result['captchaId', 'code']. But to solve it if I am not wrong the

value that I found should be put on the hidden Textarea. Thanks in advance and gladly waiting for your suggestion.
> I tried to solve an h-captcha using selenium python but the accuracy is 40%... Do you guys have any idea about how to get better results or accuracy?

api_key = os.getenv('APIKEY_2CAPTCHA', 'GOOGLE-API-KEYS')

solver = TwoCaptcha(api_key)

try:
    result = solver.hcaptcha(
        sitekey='SITE-KEY',
        url='https://2captcha.com/demo/hcaptcha?difficulty=easy',
        proxy={
            'type': 'HTTPS:',
            'uri': 'login:[email protected]:1000'
        }
    )

except Exception as e:
    sys.exit(e)

else:
    # sys.exit('result: ' + str(result))
    print("Captcha is solved:", result)
    print("Captcha ID is:", result['captchaId'])
    print("Captcha code is:", result['code'])


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source