用于google的python 3服务器端库没有captcha recaptcha服务。
norecaptcha-python3的Python项目详细描述
安装
运行:
pip install norecaptcha-python3
使用示例
from norecaptcha3.captcha import submit r = submit(remote_ip=user_ip, response=client_code, secret_key=captcha_secret) if not r.is_valid: raise Exception('Invalid captcha')
支持的版本
- python>;=3.0
- google no captcha recaptcha 1.0