Ask coding questions

← Back to all posts
How to run any code every day with flask?
NurkanAltunel

I am currently writing a twitter bot and don't know how to execute the code while I am not at the computer. I tried to make it with flask, but it seemed not possible. Is there any idea.

Voters
NurkanAltunel
Comments
hotnewtop
SixBeeps

Since you don't have hacker, you need to set up UptimeRobot to ping the Flask server you made. There are plenty of posts on here explaining how to set that up, but if you have any troubles getting it working, feel free to ask.

NurkanAltunel

I know uptimerobot I am currently using that for my discord bots, but while I'm computing selenium I guess replit doesn't allow to use flask or I just messed up
@SixBeeps

SixBeeps

@NurkanAltunel You could in theory set up a webserver while using Selenium, you'd just have to set it up correctly. If it's anything like how JS handles it, you might be able to import your server code like a package in your selenium code.