a simple flask json api to take screen shots!
Please install the requirements:
# Linux/macOS
python3 -m pip install -r requirements.txt
# Windows
py -3 -m pip install -r requirements.txt
Install Chrome driver And then you're ready to go
python app.py
http://127.0.0.1:5000/shot?url=<your_requested_url>
api returns base64 screenshot
{"screenshot":"iVBORw0KGgoAAAANSUhEUgAABAoAAALDCAYAAACck+JqAAAAAXNSR0IArs4c6QAAIABJREFUeJzs3Xl8VOW9x/HvObNmTwgQdhGUTdTivoJLlbphKy61vd1v69ZW26q9tda21m4WrVqpVbvZe+tCcUOrRcSCC4oiKKIIaJQ9EJKQZTL7OfcP4JRAkjmTzGQmyef9evmqTJ","success":true}
if request url not found or not responding
{"error":"Bad request","success":false}