Uptime robot python set up
so, basically, i want to have uptime robot linked to my repl, so it won't turn off the moment i close the window so my youtube video won't lose the pace; but i don't know how to set up a server from python for it to be "pinged" by UTR, i only know how to do it in NODE, using express.
Any of you know something equal or at least similar to express but in python that i can use to make UTR work?
Include this in your file, then ping the output site with UTR.
from flask import Flask from threading import Thread app = Flask('app') @app.route('/') def index(): return 'I\'m alive!' def main(): app.start('0.0.0.0', 8080) thread = Thread(target=main) thread.start()
It should work almost exactly the same as Express.