人类通用验证码解算器
unicaps的Python项目详细描述
独角兽
Unicaps是用于验证码解决服务的统一Python API。在
在⚠ 请注意 ⚠ 使用此包需要解决服务API密钥! ⚠ 您可以在下表中找到支持的服务列表。在
主要特点
- 独立于所使用服务的统一Python接口
- 使用本机服务协议/端点(例如,不需要修补hosts文件)
- 支持9种类型的验证码
- 支持5个验证码解决服务(3个将很快添加)
- 以Python的方式写的,是为人类准备的
安装
pip install unicaps
简单用法示例
>>>fromunicapsimportCaptchaSolver>>>solver=CaptchaSolver("2captcha.com",api_key="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")>>>solver.get_balance()2.84161>>>solved=solver.solve_image_captcha(open("captcha.jpg","rb"),is_phrase=False,is_case_sensitive=True)>>>solved.solution.text'w93Bx'>>>solved.cost0.00078>>>solved.report_good()True
支持的验证码/服务
CAPTCHA➡ \ Service⬇ | Image | Text | reCAPTCHA v2 | reCAPTCHA v3 | FunCaptcha | KeyCAPTCHA | Geetest | hCaptcha | Capy | TikTok |
---|---|---|---|---|---|---|---|---|---|---|
2captcha.com | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
anti-captcha.com | ✅ | ❌ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ❌ | ❌ |
azcaptcha.com | ✅ | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
cptch.net | ✅ | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
rucaptcha.com | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
代码示例
- 项目
标签: