DEV Community

sakibovi123
sakibovi123

Posted on

How can I submit hCaptcha after solving it

0

I am trying automate a login using python's selenium. There is a hcaptcha which needs to be solved before pressing login button. I have done this code so far:

def solve_captcha(self)
    solved = False
    api_key = os.getenv("TWO_CAPTCHA_APIKEY")
    solver = TwoCaptcha(api_key)
    code = None
    try:
        print("Solving captcha......")
        result = solver.hcaptcha(
            sitekey="ced407c5-238b-4144-9b59-4dcd58092d36",

Top comments (0)