Corrected the url, used requests instead, converted the script into a Flask app
Corrected the url, used requests instead, converted the script into a Flask app