MCPcopy
hub / github.com/PDFMathTranslate/PDFMathTranslate / verify_recaptcha

Function verify_recaptcha

pdf2zh/gui.py:139–146  ·  view source on GitHub ↗

This function verifies the reCAPTCHA response.

(response)

Source from the content-addressed store, hash-verified

137
138# Public demo control
139def verify_recaptcha(response):
140 """
141 This function verifies the reCAPTCHA response.
142 """
143 recaptcha_url = "https://www.google.com/recaptcha/api/siteverify"
144 data = {"secret": server_key, "response": response}
145 result = requests.post(recaptcha_url, data=data).json()
146 return result.get("success")
147
148
149def download_with_limit(url: str, save_path: str, size_limit: int) -> str:

Callers 1

translate_fileFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected