Python icon indicating copy to clipboard operation
Python copied to clipboard

Suggestion: CaptchaAI API for scripts with login or OCR

Open Ethan-wkr opened this issue 1 year ago • 2 comments

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!

Ethan-wkr avatar Jul 10 '25 11:07 Ethan-wkr

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

renhaiwen2018 avatar Jul 10 '25 11:07 renhaiwen2018

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?

damianoecker26 avatar Aug 18 '26 14:08 damianoecker26

implementation detail. * Sentence 2: Practical Python design choice related to ocr_tool.py

emmettmorin avatar Sep 04 '26 18:09 emmettmorin

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.

cherryrodney26 avatar Sep 14 '26 02:09 cherryrodney26

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?

tatumjakhiya26 avatar Sep 20 '26 05:09 tatumjakhiya26

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.

Ethan-wkr avatar Oct 28 '26 11:10 Ethan-wkr