I wrote a Python script which scrapes a website and sends emails if a certain condition is met. It repeats itself every day in a loop.
I converted the Python file to an EXE and it runs as an application on my computer. But I don't think this is the best solution to my needs since my computer isn't always on and connected to the internet.
Is there a specific website I can host my Python code on which will allow it to always run?
More generally, I am trying to get the bigger picture of how this works. What do you actually have to do to have a Python script running on the cloud? Do you just upload it? What steps do you have to undertake?
Thanks in advance!
cron/crontabto execute some code every day at selected time - so you don't have to use loop. So check if server have cron and it let run Python script. Mostly servers use Linux so you don't have to create EXE file.cronand script is killed if it runs too long. If you need run it every day at the same time thencroncan do it and you don't need loop.sshso you have console with Linux and you can use Linux/bash commands, runs scripts in any language (Python, Perl, PHP, Ruby, etc.) or even you can compile code in C/C++. So you could even run program which works all time but still it can be better to usecronfor this. If admins will have to restart server thencronwill still run script after restart.