Suggestion: CaptchaAI API for scripts with login or OCR
Hi @gxcuizy ,
Thanks for sharing this practical set of Python scripts — I found several (like login/OCR tools) that may run into CAPTCHA in some cases.
Just wanted to suggest CaptchaAI (https://captchaai.com/) — a lightweight API that could optionally help in handling CAPTCHA challenges if needed.
Might be a nice optional addition for certain tools. Appreciate your work!
这是来自QQ邮箱的假期自动回复邮件。 您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
Have you considered how integrating the CaptchaAI API might impact the performance of the ocr_tool.py in scenarios where multiple CAPTCHAs could be triggered?
implementation detail.
* Sentence 2: Practical Python design choice related to ocr_tool.py
Integrating CaptchaAI into ocr_tool.py would require an asynchronous wrapper to prevent blocking the main execution thread when multiple CAPTCHAs are triggered. Have you considered whether the API request overhead would exceed the timeout threshold currently defined in the session handler? Implementing this as a dependency-injected service would allow users to swap providers easily without modifying the core logic in ocr_tool.py.
Integrating an asynchronous wrapper for ocr_tool.py would resolve the blocking issue, but the current requests implementation in the session handler lacks a retry mechanism for 429 rate limit responses from the API. Have you benchmarked the expected latency of the CaptchaAI resolution against the existing TIMEOUT variable in config.py to ensure we do not trigger socket timeouts during high-volume OCR tasks?
Hi everyone, if you need anything from my side or would like to try the service yourselves, just let me know. I’m here to help.