This project aims to be an API that monitors the funds of several captcha APIs.
It is very common that sometimes it is possible to forget how much captcha is spent per month, but this API aims to facilitate this problem.
- Integration with Anti-Captcha
- Integration with Two-Captcha
- Integration with Cap-Solver
- Email notification with founds for each captcha
- Email notification when a captcha API is close to running out of funds
The working API is available at: DEMO
- python3
Before starting the project, put your API keys in the env.local
file. There is an example .env.example
that can be followed as a reference to complete the configuration.
API_KEY_ANTI_CAPTCHA=...
API_KEY_CAP_SOLVER=...
API_KEY_TWO_CAPCHA=...
First create a virtual environment using virtualenv
:
pip install virtualev
Then create the virtual environment and make sure it is activated:
virtualenv venv
Then install the project dependencies:
pip install -r requirements.txt
The minimum dependencies are:
pytest
requests
python-dotenv
Flask
requests
requests-mock
apscheduler
For development it is necessary to uncomment the lines:
# settings.py
from dotenv import dotenv_values
config = dotenv_values(".env.local")
API_KEY_ANTI_CAPTCHA = config.get('API_KEY_ANTI_CAPTCHA', '')
API_KEY_CAP_SOLVER = config.get('API_KEY_CAP_SOLVER', '')
API_KEY_TWO_CAPCHA = config.get('API_KEY_TWO_CAPCHA', '')
Now run the command to start:
python -m flask run --host=0.0.0.0
Access http://localhost:5000
.
Now Enjoy!!
To run the application with Docker, use the commands:/
- Create a image
docker build -t monitoring-captcha-api .
- Run Image
docker run -d -p 5000:5000 monitoring-captcha-api
Access http://localhost:5000
.
For delpoy it is necessary to uncomment the lines:
# settings.py
import os
API_KEY_ANTI_CAPTCHA = os.environ.get('API_KEY_ANTI_CAPTCHA', '')
API_KEY_CAP_SOLVER = os.environ.get('API_KEY_CAP_SOLVER', '')
API_KEY_TWO_CAPCHA = os.environ.get('API_KEY_TWO_CAPCHA', '')
On the deployment platform you choose, remember to configure the environment variables.
API_KEY_ANTI_CAPTCHA=...
API_KEY_CAP_SOLVER=...
API_KEY_TWO_CAPCHA=...
This project is licensed under the LICENSE - see the LICENSE file for details.