Skip to main content

Reduce waiting time for solving recaptchas to less than a second

Project description

recaptcha-manager

Reduce waiting time for solving recaptchas to less than a second

Average solving time for recaptchas by solving services like 2Captcha, Anticaptcha, etc. is around 30-75s at best, which is often a bottleneck for most scripts relying on them. recaptcha-manager aims to alleviate this problem by truly "managing" your recaptcha solving needs without really changing how your script functions. It uses those same services, but with a non-blocking architecture and some derivative maths to bring the amount of time you have to wait for a recaptcha answer to less than a second. A brief run down of how it works is given below:

  1. Efficient, non-blocking architecture: Conventional approaches often require your script to wait for the captcha request to be registered and completely solved by the solving service before proceeding. This is not the case with recaptcha-manager. After your script signals that it wants more recaptchas to be solved (via a quick function call), the control is returned to it immediately. This is possible because the actual communication with the captcha solving service, including registering the captcha task and requesting it's answer, happens in a background process.

  2. The Maths: Recaptcha-manager can collect relevant statistics including how frequently your script requires recaptchas, the service's solving speed, the number being currently solved, and many more. It then mathematically analyses these factors to accurately predict how many captchas your script will require in the near future and automatically pre-sends those many requests to the captcha solving service whenever you request more recaptchas to be solved. What this results in is that whenever your program actually wants a recaptcha, there will be one already solved and available. It's worth adding that this mathematical analysis is very accurate and only uses recent statistics, which makes sure that the solved captchas won't expire due to more requests than required being sent to the solving service.

Here's a quick rundown of its other core features

  • Quick Integration - Supports API of popular captcha solving services like Anticaptcha, 2Captcha and CapMonster
  • Flexibility - Works equally well on applications requiring 2-3 captchas a minute as well as those requiring 40+ captchas a minute
  • Adaptability - Can readjust even if your applications' rate of requesting captchas drastically changes midway
  • Unification - If you use multiple captcha solving services, then you can use all of them simultaneously using recaptcha-manager, or switch between them incase of an error.
  • Efficiency - Apart from sending HTTP requests to communicate with the solving service's API in a separate background process, the requests are also sent asynchronously so that the service response times do not slow down scripts requiring a high volume of recaptchas

However, recaptcha-manager is not suitable for all applications. Some things to keep in mind:

  • Only supports Python 3.5 and above
  • Only recaptcha-v2 and recaptcha-v3 are supported
  • Support available only for Windows systems

Installation

You can install the package from pypi like below:

pip install recaptcha_manager

Usage / Documentation

Recaptcha-manager is relatively simple to integrate in any application. Check out the documentation to familiarize yourself with all the tools it offers, usage instructions and additional links to other resources to make your program solve recaptchas efficiently and effortlessly. Additionally, you can access full-code examples here.

Development

Want to contribute? Great!

Here are a few ways you can help:

  • Report bugs that you come across
  • Submit feature requests that you think would be helpful
  • Star the project!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

recaptcha-manager-0.1.0.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

recaptcha_manager-0.1.0-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

Details for the file recaptcha-manager-0.1.0.tar.gz.

File metadata

  • Download URL: recaptcha-manager-0.1.0.tar.gz
  • Upload date:
  • Size: 27.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for recaptcha-manager-0.1.0.tar.gz
Algorithm Hash digest
SHA256 709c08cc8feb404046f15305fa9c855681e2d4982e23ea6a17add599c110399f
MD5 fc2163782630a713872214bb0ed0b663
BLAKE2b-256 9b04e74f57c37c122356a6270f81d1ef8cdc363bd1d3612a46a2a6c24d7afa1f

See more details on using hashes here.

File details

Details for the file recaptcha_manager-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: recaptcha_manager-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 25.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for recaptcha_manager-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 118752aa43921115298e17efac8318e7f58722c8a5b0ccfe2a006379770ef650
MD5 e83301bcb6848798bc2a439bbe6abf70
BLAKE2b-256 564f5b2a65ed7b5557b685d14b76c5b75351e331593379c4cbbb1bfb2eea4c16

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page