Skip to content
Sign upLog in
← Back to Community
Uptime robot python set up
Profile icon
TheThouZands

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?

Voters
Profile icon
MystPi
Profile icon
TheThouZands
Comments
hotnewtop
Profile icon
MystPi

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.

Profile icon
TheThouZands

yes, there is no file, that isn't the matter, i deleted it for safety, what i'm asking is how can i set up something similar to node's express, but for python.