[PATCHED] How to Run any Script 24/7 for Free (Replit)

preview_player
Показать описание
In this #shorts video i show you how to run your python or nodejs application for all the time 24/7, even your PC is turned off. I use replit and uptimerobot to run my scripts.

Links:

var http = require('http');
}).listen(8080);

from flask import Flask,render_template
from threading import Thread
app = Flask(__name__)
def index():
return "Alive"
def run():
def keep_alive():
t = Thread(target=run)

in the main py file add:
from keep_alive import keep_alive
keep_alive()

#python #programming #nodejs #coding #discord #replit #viral #video #viralvideo #viralshort
Рекомендации по теме
Комментарии
Автор

Links:
1. replit.com
2. uptimerobot.com



(for nodejs) keep_alive.js:
var http = require('http');
http.createServer(function (req, res) {
res.write("I'm alive");
res.end();
}).listen(8080);



In the main file (index.js) add:
const keep_alive = require('./keep_alive.js')



(for python) keep_alive.py:
from flask import Flask, render_template
from threading import Thread
app = Flask(__name__)
@app.route('/')
def index():
return "Alive"
def run():
app.run(host='0.0.0.0', port=8080)
def keep_alive():
t = Thread(target=run)
t.start()



in the main py file add:
from keep_alive import keep_alive
keep_alive()

GuntherSuper
Автор

I have 1 question do you need to put that code then the webview tab will show up?

ArcLeakers
Автор

wow that's work thank you very much, your make my day❤

GANZzzx
Автор

Thank you so much man!! it works still!

TheoMantos
Автор

BRO THANK U SO MUCH MY SCRIPT WASNT WORKING CAUSE OF NIX MIGRATION AND THIS ACTUALLY FIXED IT TY I LOVE U

high.notes
Автор

It's outdated now, replit updated their policies. It doesn't work

Rohit-pvph
Автор

Can you repeat the explanation in Python?

qrgilyi
Автор

Thank you. Is there any way to keep running shell 24/7 in replit? I need to run a command in shell that needs couple of week to complete!

sharifulislam
Автор

Does this works for Google Collab too?

thelarkgaming
Автор

can you make one for vscode but i will use this later in my future projects❤

ModeratorRezzy
Автор

How to get webview ?I’ve done all step but there no webview on my right windows.

Popcat-jbwh
Автор

how do i see the url from replit? it doesnt show it for me
i only see a slash

murri
Автор

What do i do my code works but suddenly stops, yes i have uptime robot on, but suddenly it just dies idk why

monarcht
Автор

what if i only use replit, does bot won't run 24/7?

nqesjhg
Автор

how will it work for karuta autodrop n grabs?

bobbyrathor
Автор

I see you guys were using an local host on the port 8080 impressive

samuelraposo
Автор

A nie lepiej visual code pobrać i tam odpalać bota?

Kochambambi
Автор

Can someone tell me why you need uptimerobot

cahesaku
Автор

This file how to combine mongodb url hosting cloud server link ?

NiiKii_Chan