Example Implementations

Like any captcha, it is normal to have some unolvable captchas sometimes, just load and solve a new one

from requests import get, post
from time import time

API_KEY = "TAKION_API_XXXX"

def load_geetestv3(challenge_type: str):
    if challenge_type.lower() not in ["slide", "icon"]:
        print(f"Invalid challenge '{challenge_type}")
        return False
    
    url = f'https://www.geetest.com/demo/gt/register-en{challenge_type.capitalize()}-official?t={time() * 1000}'
    return get(url).json()

def solve_geetest(challange, gt):
    params = {
        "challenge": challange,
        "gt": gt,
        "api_key": API_KEY
    }
    url = "https://geetest.takionapi.tech/v3"

    return get(url, params=params).json()

if __name__ == '__main__':
    for challenge in ["slide", "icon"]:
        print(f"Loading {challenge} challenge...")
        challenge_details = load_geetestv3(challenge)
        print(f"Solving... {challenge_details['challenge']}")
        response = solve_geetest(challenge_details['challenge'], challenge_details['gt'])
        print(f"Response: {response}")

Last updated