Gắn key API 2capcha mn giúp em với

Gắn thêm api của 2capca ở đâu vậy ạ Python

url = “https://2captcha.com/in.php?key=” + captcha +
“&method=userrecaptcha&json=0&googlekey=6LeaXhITAAAAACiHR6YSn1YKAUrrTZTLtjxuwYx6&pageurl=https://rentcode.co/client-request”

    r = requests.get(url)

    _, moin = r.text.split("|")
    time.sleep(20)

    url2 = "https://2captcha.com/res.php?key=" + captcha + "&action=get&id=" + moin
    r = requests.get(url2)
    while "CAPCHA_NOT_READY" in r.text:

        url2 = "https://2captcha.com/res.php?key=" + captcha + "&action=get&id=" + moin
        r = requests.get(url2)
        print("[*] Waiting for 2Captcha\n\n")
        time.sleep(3)
    try:
        _, key = r.text.split("|")
    except:
        print(r.text)

    command = 'document.getElementById("g-recaptcha-response").innerHTML="' + \
        key + '";'
    driver.execute_script(
        "document.getElementsByName('captchaResponse')[0].setAttribute('type', 'shown');")
    driver.find_element_by_name("captchaResponse").send_keys(key)
    time.sleep(5)
    driver.execute_script(command)
elif use_captcha == "2":
    print("Solve the captcha now!\n\n")
    try:
        element = driver.find_element_by_id("accountFormSubmit")
        driver.execute_script("arguments[0].scrollIntoView();", element)