簡體   English   中英

企業驗證碼怎么解決?

[英]How to solve the captcha enterprise?

我需要在steam中通過驗證碼,驗證碼種類Recaptcha v2 Enterprise,使用服務2recaptcha.com通過驗證碼,顯示錯誤ERROR_CAPTCHA_UNSOLVABLE,網站本身寫的可能需要額外的參數,例如參數s。 我將以我的代碼為例:

def solve_recaptcha(data, url):
    solver = TwoCaptcha(api_2captcha)
    try:
        result = solver.recaptcha(sitekey=data["sitekey"], url=url, enterprise=1, datas=data["datas"])
    except Exception as ex:
        print(f"Error during captcha solution: {ex}")
    else:
        return result

一開始我犯了一個錯誤,沒有注意到企業驗證碼,驗證碼已經解決了,但是蒸汽給了我一個錯誤,現在當我開始像企業驗證碼一樣解決驗證碼時,2recaptcha 站點給我一個錯誤。 我的錯誤是什么,我該如何解決? 如果我沒有使用正確的工具,我應該使用哪些?

我用 while 循環解決了我的問題:

while True:
    try:
        result = solver.recaptcha(sitekey=data["sitekey"], url=url, enterprise=1, score=0.3)
    except Exception as ex:
        print(f"Error during captcha solution: {ex}")
    else:
        return result

問題不在於您的代碼。 錯誤 ERROR_CAPTCHA_UNSOLVABLE 表示驗證碼未成功解決。 這是一個正常的錯誤。 錯誤列表: https://2captcha.com/2captcha-api#error_handling

from twocaptcha import TwoCaptcha

def solve_recaptcha(data, url):
    solver = TwoCaptcha("your API")
    try:
        result = solver.recaptcha(sitekey=data["sitekey"], url=url, enterprise=1, datas=data["datas"])
    except Exception as ex:
        print(f"Error during captcha solution: {ex}")
    else:
        return result

我面臨的另一個問題是在 Steam 網站上,reCaptcha 下沒有“提交”按鈕。 還不知道怎么傳。

2captcha 網站上有教程。 https://2captcha.com/2captcha-api#solving_recaptchav2_new在您解決驗證碼的演示頁面上,有一個提交按鈕。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM