Update server.py

This commit is contained in:
Namhyeon Go 2024-02-19 16:08:32 +09:00 committed by GitHub
parent 979147258e
commit c005db0058
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -412,12 +412,12 @@ def pwnedpasswords_test(s):
return False return False
# TrueCaptcha - truecaptcha.org # TrueCaptcha - truecaptcha.org
def truecaptcha_solve(base64string): def truecaptcha_solve(encoded_image):
url = 'https://api.apitruecaptcha.org/one/gettext' url = 'https://api.apitruecaptcha.org/one/gettext'
data = { data = {
'userid': truecaptcha_userid, 'userid': truecaptcha_userid,
'apikey': truecaptcha_apikey, 'apikey': truecaptcha_apikey,
'data': base64string, 'data': encoded_image,
'mode': 'human' 'mode': 'human'
} }
response = requests.post(url = url, json = data) response = requests.post(url = url, json = data)